in reply to PERL Telnet Times Out
Your lines:
end up waiting for a literal "\n", since you have escaped the backslash.$telnet->cmd("cd c:\\Documents and Settings\\vtat\\SCRIPTS\\SCL"); $telnet->waitfor('/.*\\n/');
That will never come - try replacing the waitfor with:
The ".*" is unnecessary.$telnet->waitfor('/\n/');
Update: Have you considered using the free psexec, that does essentially the same thing more natively?
Syntactic sugar causes cancer of the semicolon. --Alan Perlis
|
|---|