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 :-)
Bookmarks