Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

to run a unix script

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I wanted to run a unix script in java application which is running in windows OS. Can any one tell how to do that with a sample code. And how to make the interaction between UNIX and windows. I am using HP UNIX. Please help me in this. Urgent.
 
Sheriff
Posts: 67637
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"atlantis atlantis", please check your private messages for an important administrative matter.
 
author
Posts: 23919
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

atlantis sundar wrote:
I wanted to run a unix script in java application which is running in windows OS. Can any one tell how to do that with a sample code. And how to make the interaction between UNIX and windows. I am using HP UNIX. Please help me in this. Urgent.



Well, it would help if you tell us what are you running. You start off by saying that you are running Java on Windows, and then later say that you are using HP Unix. Well, which is it?

Henry
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think it's both: my understanding is that there's a Java application on Windows from which the OP wants to run a script on an HP Unix box.
 
Henry Wong
author
Posts: 23919
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It can also be read as a script that works on HP, that the OP want to run on Windows... regardless, we need clarification. And more information, depending on what the clarification is.

Henry
 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Indeed. The request for how to do the interaction between Windows and Unix is what put me on that path.

Seems like a lot to deal with for an "urgent" request ;)
 
atlantis sundar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Yes, the java application is running on windows OS, and frm that application i want to trigger the unix script for which I am using HP-UNIX.
 
Sheriff
Posts: 22649
126
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Then you need to use a protocol like Telnet or SSH. The HP UNIX machine must have a server running for one of these; I recommend SSH over Telnet because it is more secure.

Check out Apache Commons Net for a good Telnet client, and a library like JSch for SSH.
 
Henry Wong
author
Posts: 23919
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would recommend doing it without Java first. Can you use telnet? Or does Window need to install something like Putty? Heck.... can you even ping the HP box from the windows box?

Once you confirm that the network connection is okay, and that that a particular protocol works, then you should look into the Java API that does that protocol.

Henry
 
Stinging nettles are edible. But I really want to see you try to eat this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic