Help: expect

M

Minh

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,145
Messages
2,570,824
Members
47,369
Latest member
FTMZ

Latest Threads

Top