Research
.
Skip Search Box

SELinux Mailing List

Re: expect

From: Russell Coker <russell_at_coker.com.au>
Date: Sun, 27 Oct 2002 00:07:51 +0200


On Sat, 26 Oct 2002 23:32, Chris Albert wrote:

> Russell Coker wrote:

> >I want to run an expect script as:
> >script program param1 param2 ...

OK, I think I didn't make it clear what I want to do. Say I want to run ls with a variety of parameters, I save the following as /tmp/testit:

#!/usr/bin/expect

spawn /bin/ls [lrange $argv 0 end]
interact

Then I type the following command:
/tmp/testit -l -a /tmp

I want the same result as "ls -l -a /tmp" but I don't get it.

-- 
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
Received on Sat 26 Oct 2002 - 18:20:24 EDT
 

Date Posted: Jan 15, 2009 | Last Modified: Jan 15, 2009 | Last Reviewed: Jan 15, 2009

 
bottom

National Security Agency / Central Security Service