SLUG Mailing List Archives
Fw: [SLUG] FTP uploading from a bash script
- To: slug@xxxxxxxxxxx
- Subject: Fw: [SLUG] FTP uploading from a bash script
- From: scott@xxxxxxxxxxxxxxxxxxxxxx
- Date: Fri Dec 13 09:43:02 2002
Forgot to CC List
Scott Ragen/Roadtech wrote on 13-12-2002 10:23:38 AM:
> Give this a try.
> ftp -i -n <<MARK
> open $FTPSERVER
> user $USER $PASS
> put ftp commands here
> That should do it.
> Of course, dynamic dns has its advantages, as other people have
> Scott Ragen
> Support Manager/IT Administrator
> Roadtech Systems
> PH: +61 2 9807 3516 FAX: +61 2 9808 5294
> slug-admin@xxxxxxxxxxx wrote on 13-12-2002 12:14:52 AM:
> > What is the easiest way to upload a file from a bash script to a ftp
> > server?
> > I have a script on a remote box that checks every so often from cron
> > what the ip address is and if it changes then uploads the change to my
> > ftp server, because the remote box is on a telstra cable connection
> > the owner of the box still finds it difficult to find the ip address
> > when ever something goes wrong, and I have to ssh in. The script will
> > have the username and password hardcoded.
> > ps.. I also want to make sure that I will always have a back door....
> > he he he
> > Regards,
> > Karl Bowden
> > [attachment "signature.asc" removed by Scott Ragen/Roadtech]