[Sussex] Automated FTP
Matthew Macdonald-Wallace
matthew at truthisfreedom.org.uk
Sat Jul 10 13:21:52 UTC 2004
On Sat, 10 Jul 2004 14:08:53 +0100
"Karl E. Jorgensen" <karl at jorgensen.com> enlightened us with:
---8<---
> !? Ftp or email? Must be a strange hosting company if they only want
> to accept email attachments!? Authentification must be a real PITA
> for them...
It's for a system I'm designing, I want to able to email a file from
anywhere (pictures etc.) and have it uploaded.
> I assume that we're talking plain ftp upload here...
yup
> > is it possible to do this using ftp and a shell script with cron?
> >
> > I would need to upload the file to _remote_/htdocs/someDir/ from
> > _local_/home/$user
>
> For my own website, I prepare the files locally and then use sitecopy
> ( http://www.lyra.org/sitecopy/ ) to push any changes to the web
> server.
>
> Of course, a *really cool* solution would be to use the virtual ftp
> file system module, combined with use cp(1) or rsync(1) but I haven't
> tried that yet...
Cheers, I'll try it.
> If that won't cut it then read on...
>
> I don't know which Linux distro you're using, but in Debian we have a
> couple of packages that should help:
I'll see if Gentoo has the same in portage.
---8<---
> In the past I've used lftp(1) for that - it can take commands on the
> command line.
I'll look into this too.
> > This email has been independently scanned for viruses and any virus
> > detected has been removed using McAfee anti-virus software
>
> whatever. Why advertise for them?
I wish I could remove it, it's added by the mail relay here at uni. The
ironic thing is that I keep getting viruses in my IMAP student account.
Maybe they're only checking outgoing emails... :p
Matt
--
+-------------------------------+
| Matthew Macdonald-Wallace |
| matthew at truthisfreedom.org.uk |
| www.eighthnerve.co.uk |
+-------------------------------+
This email has been independently scanned for viruses and any virus detected has been removed using McAfee anti-virus software
More information about the Sussex
mailing list