aspose file tools*
The moose likes Java in General and the fly likes Executing Unix command from java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Executing Unix command from java" Watch "Executing Unix command from java" New topic
Author

Executing Unix command from java

Shiaber Shaam
Ranch Hand

Joined: Jun 16, 2006
Posts: 252
I am trying to execute an unix command using

Process p = Runtime.getRuntime().exec("");

Before executing it, how do i define the credentials and the hostnames?


$Hi/\bEr
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36465
    
  15
Don't know. How do you identify the credentials when you run it from the command line? Don't go anywhere near Runtime.exec() until you have read Michael Daconta's classic article when Runtime.exec() won't.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Executing Unix command from java
 
Similar Threads
oracle on unix
I m not able to print out.println on target iframe
not able to execute a repquota command on a bash shell
Deleting a file from server
handling Java child process execution