Jsch invoking multiple unix commands
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Jsch invoking multiple unix commands

  1. #1
    Join Date
    Jun 2012
    Posts
    1

    Lightbulb 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.

  2. #2
    Join Date
    Nov 2006
    Location
    Barcelona - Catalonia
    Posts
    362

    Re: Jsch invoking multiple unix commands

    Quote Originally Posted by Amit Anand View Post
    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
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center