[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

expect problem



I have attached a couple of test programs demonstrating a problem that I have 
with expect.

I type the following:
./expect_script ./testit

The result I desire is that the command "sleep 100" is running in the 
background.  However sleep doesn't seem to get run.

I can't determine the exact cause of the problem because all methods of 
tracing it (strace etc) stop it occurring).

Putting a "sleep 1" at the end of the testit script will solve the problem, 
however in the REAL situation that this test is similating I don't get to 
change the script that is run from expect...

-- 
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

Attachment: testit
Description: application/shellscript

#!/usr/bin/expect

eval spawn -noecho $argv
interact

Reply to: