lftp Scripting
hey folks... i need help since i'm not the best scripter in the world.
I need a script that executes the following functions for lftp....but I don;t know how to make it work right since the lftp switches shells and the other commands are lost.
lftp slackware.oregonstate.edu
(then inside the lft prompt after it has connected)
mirror -e /pub/slackware/slackware-9.1 /pub/slackware-9.1
mirror -e /pub/slackware/slackware-9.1-iso /pub/slackware-9.1-iso
mirror -e /pub/slackware/slackware-current /pub/slackware-current
That's all it needs to do.. the commands work fine by themselves but i don;t know how to script it.... if i put them all into the same script it leaves out the mirror commands. If I run a script to execute the lftp connection as follows...calling to an outside script for commands...
lftp -f slackware.oregonstate.edu
it says that it's not connected.
anyone have any idea how to script these 4 basic commands so they work right?
Thanks
|