OK, first change didn't accomplish anything.
Second change, calling via /usr/bin/expect<expectscript> ipadd, with trace running outputs:
So changing the method of calling the script has stopped the argument being passed by the looks of it...
Last edited by vbe; 08-17-2011 at 12:41 PM..
Reason: code tags!!!!
I have a webpage that is in HTML and PHP. In PHP I have tried using exec, system, shell_exec and passthru functions to call an Expect Script file (temp.exp). This Expect file spawns a telnet session that uses "expect/send" commands to retrieve information from an environmental unit (not a normal... (0 Replies)
I call a EXPECT script from my perl script with machine IP and a FIle. The script logins to the machine and exports the value. The values to be exported or stored in a file.
I have close to 10 machines and I have created 10 files and pass the corresponding files in command line, Now I could like... (4 Replies)
Hi all,
I have written a small expect script which should spawn a telnet session login and execute some commands.
#!/usr/bin/expect -f
spawn telnet $env(IP)
match_max 100000
expect "login:"
send -- "******\n"
expect -exact "Password:"
send -- "****\n"
expect "%"
Now I have got... (2 Replies)
I'm calling an expect script via a ksh script in cron and it is failing. The script runs fine if i run it manually. Does anyone know if it is an issue with compatibilty and if there is a way around it? (2 Replies)
Hi there,
I need some help regarding the execution of shell script from expect as the method I am trying is giving me error. I wrote an shell program which takes two arguments to telnet to a device and saves the output in a file. Following is the script.... (0 Replies)
Hi all,
This is the first time i am using expect.
I am trying to call a function with in the shell script. The function will shh to a new server and will pass the password using expect and send. I need help in calling the fuction i am getting follaowing errors...
here the script
... (8 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 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"
...
log_user 1
send_user "Executing remote script as $user...\n"
send_user "Command to execute is: $REMOTE... (1 Reply)
password check in bash script calling on expect
Background: I have to copy a file from one server, to over 100 servers in a test environment. once the file is copied, it requires to have the permissions on the file changed/verified. These are all linux servers. most of them have the same... (1 Reply)
Discussion started by: 2legit2quit
1 Replies
LEARN ABOUT BSD
plot
PLOT(1G)PLOT(1G)NAME
plot - graphics filters
SYNOPSIS
plot [ -Tterminal ] [ -rresolution ] [ files... ]
DESCRIPTION
These commands read plotting instructions (see plot(5)) from the standard input or the specified files, and in general produce plotting
instructions suitable for a particular terminal on the standard output. The -r flag may be used to specify the device's output resolution
(currently only the Imagen laser printer understands this option).
If no terminal type is specified, the environment parameter $TERM (see environ(7)) is used. Known terminals are:
4013 Tektronix 4013 storage scope.
4014 or tek
Tektronix 4014 or 4015 storage scope with Enhanced Graphics Module. (Use 4013 for Tektronix 4014 or 4015 without the Enhanced
Graphics Module).
450 DASI Hyterm 450 terminal (Diablo mechanism).
300 DASI 300 or GSI terminal (Diablo mechanism).
300S DASI 300S terminal (Diablo mechanism).
aed AED 512 color graphics terminal.
bitgraph or bg
BBN bitgraph graphics terminal.
imagen or ip
Imagen laser printer (default 240 dots-per-inch resolution).
crt Any crt terminal capable of running vi(1).
dumb Dumb terminals without cursor addressing or line printers.
vt125 DEC vt125 terminal.
hp2648 or hp or hp8
Hewlett Packard 2648 graphics terminal.
ver Versatec D1200A printer-plotter.
var Benson Varian printer-plotter.
These versions of plot use the -g option of lpr(1) to send the result directly to the plotter device rather than to the standard
output.
FILES
/usr/bin/t4013
/usr/bin/tek
/usr/bin/t450
/usr/bin/t300
/usr/bin/t300s
/usr/bin/aedplot
/usr/bin/bgplot
/usr/bin/crtplot
/usr/bin/dumbplot
/usr/bin/gigiplot
/usr/bin/hpplot
/usr/bin/implot
/usr/ucb/lpr
SEE ALSO plot(3X), plot(3F), plot(5), lpr(1)7th Edition September 21, 1985 PLOT(1G)