> Repeat > wait 1 > Until checker=TRUE > checker=FALSE > After every Run_command() >
Maybe you want to include that into Run_command(), that would make the code tidier. Also when wait is in loop, I think one second is too long time, if there is multiple commands to execute... > My problem is how to solve insertion of user name and password as well > as the command 'ls -R' > You can watch for some mark of end of execution, example: Instead of: ls -R Use: ls -R ; echo '-->command executed<--' And in read event check when sStr includes that mark. There is no input at all after user name and password? You cannot configure ftp server to give any? Maybe you need to use wait with those two... at the moment no good ideas in my mind. Jussi ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user