File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes JSCH : dos2unix command not working Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply Bookmark "JSCH : dos2unix command not working" Watch "JSCH : dos2unix command not working" New topic
Author

JSCH : dos2unix command not working

rastogi payam
Ranch Hand

Joined: May 09, 2011
Posts: 40

Hi All,
In the following code I want to explode a tar file and then navigate to scripts folder and then want to execute dos2unix *.sh command




============Output====
standaloneServerCreation.py
standaloneServerDeletion.py
uninstallApplication.sh
exit-status: 0
DONE
===================
Everything runs fine but the last command i.e dos2unix *.sh is not executing.
Can anyone please suggest the way around to get it done.
Thanks


SCJP 1.6, OCPWCD 5
 
 
subject: JSCH : dos2unix command not working
 
Threads others viewed
JSP page to call unix scrpit
How to connect to Linux using Java code?
[Jsch] channel.connect works only sometimes
Invoking unix shell commands from java.
Execute a command on a remote Shell using JSCH
developer file tools