10 More Discussions You Might Find Interesting
1. Red Hat
I have created a test script like this :
# cat script1.sh
mkdir -p "$YEAR/$DIR3"
When I... (5 Replies)
Discussion started by: anaigini45
I'm fairly new to scripting so this might not be possible.
I am using Expect with Cisco switches and need to capture the string after finding the expect request. For example, when I issue "show version" on a Nexus switch, I'm looking to capture the current firmware version:
... (0 Replies)
Discussion started by: IBGaryA
3. Shell Programming and Scripting
I have been programming with the expect program for a while now and have create a series of menu driven checks for the operations team. One thing I have noticed is that I call a remote script and pass parameters and this is display on the screen....for example.
Within the script
... (0 Replies)
Discussion started by: yakky
I have an expect script called remote that I want to call from inside my expect script called sudoers.push, here is the code that is causing me issues:
set REMOTE "/root/scripts/remote"
send_user "Executing remote script as $user...\n"
send_user "Command to execute is: $REMOTE... (1 Reply)
Discussion started by: brettski
Am very new to expect scripting..
Can You please suggest me how to call an expect script inside another expect script..
I tried with
send "expect main.exp\r"
Both... (1 Reply)
Discussion started by: Priya Amaresh
6. Shell Programming and Scripting
This Expect script provides expect with a list of IP addresses to Cisco IPS sensors and commands to configure Cisco IPS sensors. The user, password, IP addresses, prompt regex, etc. have been anonymized. In general this script will log into the sensors and send commands successfully but there are... (1 Reply)
Discussion started by: genewolfe
7. UNIX for Dummies Questions & Answers
Can anyone help me with the while loop in expect script. Following is my scenario:
1. one of my process is running and looking for a file
2. as soon as the file is dropped the proces then processes the file and creates a control file ".ctl" to indicate end of process for that file
... (5 Replies)
Discussion started by: skal5
8. Shell Programming and Scripting
Hello to all...this is my first post (so please go easy). :)
I feel pretty solid at expect scripting, but I'm running into an issue that I'm not able to wrap my head around. I wrote a script that is a little advanced for logging into a remote Linux machine and changing text in a file using sed.... (2 Replies)
Discussion started by: v1k0d3n
9. Shell Programming and Scripting
I have an expect script that logs into a host (via ssh) requests the hostid then exits... I am happy with that.
However how can I run the same script in a kind of 'while read line' and enter lots of hosts? My knowledge is still very limited (as you will soon see) so any other ideas would... (2 Replies)
Discussion started by: starsky
10. Shell Programming and Scripting
Noob question ..
My Java based application needs to change some user passwords based on some user actions. Since this application can run on Redhat AS2.1 / AS4.0 / Solaris 9 etc, the most safe and portable solution that I could think of was: Use expect.
Now, expect is not available on all... (1 Reply)
Discussion started by: namityadav