Voytek Eymont wrote:
I have a simple backup script like:

cd /home

    for i in *.* ; do
        echo 'now processing' $i
        tar cfz $i.tar.gz /home/$i
        echo 'finished processing' $i
    done

-----
at completion, I'd like to login to ftp and mput *.gz;
how do I script ftp user/pass/commands ?



A simple redirection of input should do I think. Eg

ftp < ftp_script

where ftp_script is a plain text file which contains the ftp commands you need to process to get it done - one per line.

Fil
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to