-
June 19th, 2012, 11:55 PM
#1
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
#2
Re: Jsch invoking multiple unix commands
Originally Posted by Amit Anand
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.
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?
Post the code.... I guess it's the best way we can help you.
Regards,
Albert.
Please, correct me. I'm just learning.... and sorry for my english :-)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|