Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Setting $telnet->prompt()

by quester (Vicar)
on Dec 12, 2008 at 04:48 UTC ( #729848=note: print w/replies, xml ) Need Help??


in reply to Setting $telnet->prompt()

In general there is no way to do that, since the user's prompt could be null, or identical to some of the output from the commands you want to run, or... anything. On the other hand, if the shell is sh or bash-like, you can set PS1 to any string you like to change the prompt:
weirduser@localhost's password: weirdprompt;-} PS1="my_prompt> " my_prompt>

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://729848]
help
Chatterbox?
[karlgoethebier]: marioroy: Checkout also "Linear Expressions" by the same author...
[marioroy]: thanks karlgoethebier.

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (17)
As of 2017-03-24 10:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (298 votes). Check out past polls.