On 20/01/11 14:59, Александр Поляков wrote:
 > Hi,
 >
 > Now, telnet component is working on windows when I write this code:
 >
 > #include "org/smartfrog/components.sf"
 > #include "org/smartfrog/services/net/telnet.sf"
 > sfConfig extends WindowsTelnetSessionInlinePassword {
 > Telnet:host "192.168.56.101";
 > Telnet:username "qwerty";
 > password "1";
 > Telnet:commands ["mkdir c:\\1"];
 > }
 >
 > But, it fails when I write this :
 >
 > #include "org/smartfrog/components.sf"
 > #include "org/smartfrog/services/net/telnet.sf"
 > sfConfig extends TelnetSessionInlinePassword {
 > Telnet:ostype "windows";
 > Telnet:host "192.168.56.101";
 > Telnet:username "qwerty";
 > password "1";
 > shellPrompt ">";
 > Telnet:commands ["mkdir c:\\1"];
 > }
 >


Well, we are getting closer, good error messages always help there. You 
are clearly logging in, so it's just that prompt match that is failing

Try:

  Telnet:shellPrompt ">";

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Smartfrog-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/smartfrog-users

Reply via email to