Ok, that works for known files, but what if I have to upload new directories & folders with files in them?
Is there a recursive feature in ftp? Bernhard -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Peter Hardy Sent: Tuesday, 12 March 2002 19:33 To: SLUG user group Subject: Re: [SLUG] ftp client On Tue, 2002-03-12 at 18:50, Bernhard Lüder wrote: > Can I use the native RedHat ftp client to automate this task? > How do I get it to log in as a user, then transfer files and the log out > after? It's fairly easy to use ftp in shell scripts. I used to use the following to upload webcam images to the webserver. uploadpic() { ftp -v -i -n $host <<EOF user $ftpuser $ftppasswd binary put $localfilename $remotefilename bye EOF } HTH, -- Peter [EMAIL PROTECTED] Granny: I'm pleased to say I don't even know what a sex object is. Nanny: I do. Our Shane brought one home from foreign parts once. -- (Terry Pratchett, Witches Abroad) -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug