Hello,
I have a simple expect script I use to ssh to a workstation. I then pass control over to the user with interact.
This script works fine on my HP and Mac, but on my Linux Desktop, I get a problem where the terminal hangs when ever I execute a command in the interact session that requires a... (0 Replies)
Hello!
I'm managing a SuSE Linux 10 server which alot of users are using as login server and also as a build server..
There is a wierd problem with it cus' it hangs for about 30seconds ever so often and then resumes like before, this is when using SSH.
It's not that heavley loaded but there... (2 Replies)
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)
I am writing a script to check whether the root password is set to a special string on some solaris servers.
Normally, the manually ssh login session is as below:
$ ssh root@host1
Password:
Last login: Wed Sep 16 13:53:28 2009 from 10.1.102.13
Sun Microsystems Inc. SunOS 5.10 ... (4 Replies)
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)
HI,
I have a strange problem. A shell script that runs fine on solaris. when i ported to linux, it started hanging.
here is the core of the script
CFG_FILE=tab25.cfg
sort -t "!" -k 2 ${CFG_FILE} | egrep -v "^#|^$" | while IFS="!" read a b c
do
#echo "jobs output"
#jobs
#echo "jobs... (13 Replies)
Hi,
Am very new to expect scripting..
Can You please suggest me how to call an expect script inside another expect script..
I tried with
spawn /usr/bin/ksh
send "expect main.exp\r"
expect $root_prompt
and
spawn /usr/bin/ksh
send "main.exp\r"
expect $root_prompt
Both... (1 Reply)
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:
#show version
... (0 Replies)
Hello,
I was just wondering why XGetGeometry() would cause a hang in an application.
In the xlib book it says any of there "Get" functions don't necessarily return immediately.
Is there a way to make a it return immediately or other functions that will give me the same results.
I... (1 Reply)
Discussion started by: TMurray77
1 Replies
LEARN ABOUT DEBIAN
ql-set-cmd-timeout
ql-set-cmd-timeout(8) System Administration ql-set-cmd-timeout(8)NAME
ql-set-cmd-timeout - set the timeout on the devices connected to the QLogic FC HBA.
SYNOPSIS
ql-set-cmd-timeout [OPTIONS]
DESCRIPTION
QLogic Linux Set Device Timeout Utility
This utility allows you to set the timeout on the devices connected to the QLogic FC HBA. This timeout value applies to the commands sent
to the device. This can help when target devices take longer to execute a command, for example under heavy I/O. Setting a longer timeout
reduces the chance of the Linux SCSI mid-layer driver aborting the tasks after a timeout.
[DEFAULT]
Display timeout of devices connected to all HOSTs
[HOST]
Display timeout of devices connected to HOST
[HOST] [TARGET]
Display timeout of devices connected to a TARGET on HOST
[HOST] [TARGET] [TIMEOUT]
To set timeout on devices connected to a TARGET on HOST
-h, --help, ?
Prints this help message
-i, --interactive
Use this option to use the menu driven program
SEE ALSO ql-dynamic-tgt-lun-disc(8), ql-lun-state-online(8), ql-hba-snapshot(8)Matthias Schmitz <matthias@sigxcpu.org> August 2008 ql-set-cmd-timeout(8)