Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Help: expect

Reply
Thread Tools

Help: expect

 
 
Minh
Guest
Posts: n/a
 
      01-06-2004

Hi,

I am newbie to expect.
Please let me know how to include the unix command below in expect script.
I want to remove all files in /tmp/temp-dir/ after ftp is completed.

/usr/bin/rm /tmp/temp-dir/*


This script is not working

#!/usr/local/bin/expect -f
spawn /usr/bin/rm /tmp/temp-dir/\*


Thanks
Minh


 
Reply With Quote
 
 
 
 
Gregory Toomey
Guest
Posts: n/a
 
      01-07-2004
It was a dark and stormy night, and Minh managed to scribble:

>
> Hi,
>
> I am newbie to expect.


Congratulations. Try comp.lang.expect.misc.

gtoomey
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to expect eof with expect+pty Simon Strandgaard Ruby 4 12-20-2006 04:00 PM
Bug in $obj->expect() ... ? (Expect 1.15) Phil Perl Misc 0 07-07-2006 07:25 AM
Re: CGI won't run external program - Expect - ans'ed my own question chuck Firefox 0 11-15-2005 12:00 AM
CGI won't run external program - Expect chuck Firefox 0 07-30-2005 03:44 PM
@INC is not what I expect niz Perl 2 07-23-2003 08:57 AM



Advertisments