Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: The cmd sent to the remote telnet will not run

by sedhed (Scribe)
on Aug 02, 2002 at 20:07 UTC ( #187201=note: print w/replies, xml ) Need Help??


in reply to The cmd sent to the remote telnet will not run

I'm going to guess that it's one of two things:

  • Your prompt setting is not being matched. (Did you mean to use both $user and $username in your code?) You can use the dump_log() method to check for this stuff.
  • The literal command backup_sybase.pl is not found. Perhaps you need to give it a path such as ./backup_sybase.pl or maybe /usr/local/something/backup_sybase.pl?

Also, I could very well be wrong, but my take on the docs is that you want the prompt() setting to match the whole prompt, not just a portion of it.

cheers!

Replies are listed 'Best First'.
Re: Re: The cmd sent to the remote telnet will not run
by mnlight (Scribe) on Aug 02, 2002 at 20:26 UTC
    I added a waitfor and it seems to work fine. Thanks

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://187201]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2021-01-18 07:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?