Search Results

Search: Posts Made By: cogitate228
8,424
Posted By cogitate228
This is what I have so far: expect { ...
This is what I have so far:

expect {
if { "echo $PS1" == "root" } {
send "uname -a\r"
send "fw printlic\r"
send...
8,424
Posted By cogitate228
Thanks for the quick reply but am not sure if...
Thanks for the quick reply but am not sure if that's what I'm looking for... basically the root environments on the different machines will have different prompts... i need the expect script to...
8,424
Posted By cogitate228
Using Expect and if
Hi there,

I'm trying to get an expect script to recognize a specific shell prompt and then execute some simples commands when it detects that particular prompt.

So say I log in to a box, and...
25,090
Posted By cogitate228
Hi there sorry to dig up an old thread but I...
Hi there sorry to dig up an old thread but I couldn't find a thread that was similiar.

I'm trying to get an expect script to look for a specific shell prompt and then execute some simples commands...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 07:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy