June 19th, 2012, 11:55 PM
Jsch invoking multiple unix commands
I am generating list of commands dynamically from java code and using jsch exec i am running each command in a loop. Since in exec there is a thread sleep of one second and my list is more than 500, it takes more than 500 sec . Is there a way that i can run them in less time duration.
June 20th, 2012, 03:25 AM
Re: Jsch invoking multiple unix commands
I think, I don't get it. Your list has more than 500 commands, right? Each command sleeps 1 sec, right? I takes more than 500 secs. So, what's the problem?
Originally Posted by Amit Anand
Post the code.... I guess it's the best way we can help you.
Please, correct me. I'm just learning.... and sorry for my english :-)
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!