On Thu, Jan 04, 2001 at 05:23:58PM +1100, [EMAIL PROTECTED] wrote:
> I was thinking to create a ftp script to transfer them but I don't know how
> to supply the passord for basic ftp ? I can do it for ncftp using
> the ftp://username:password@host syntax but I would prefer to use basic
> ftp on windoze and push the logs to the other machine.
I use the following piece of bash script to upload my webcam images:

uploadpic() {
    ftp -v -i -n $host <<EOF
    user $ftpuser $ftppasswd
    binary
    put $localdir/$filename $remotedir/$remotefilename
    bye
EOF
}

- Peter
[EMAIL PROTECTED]

-- http://members.optushome.com.au/peterhardy
On Thursday a small war broke out between those who worshipped the
Mother Goddess in her aspect of the moon and those who worshipped her
in her aspect of a huge fat woman with enormous buttocks.
                -- (Terry Pratchett, Pyramids)


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to