simple shell scripting question
hi everyone,
just trying to learn how to do shell scription, assigned myself a
simple task:
I have a webstie which I manage both from home (mac) and work
(woody). I use sitecopy at work but my access is only via ftp, so
sitecopy can't identify newer files on the website. So after I
upsdate the site form home, I usually log in to my work ocmputer and
immediately ftp the new site files over. This can be slightly
tedious, and I would like to be able to do this in just one command.
so I'd like to be able to do this:
ftp -i origin.chass.utoronto.ca
cd public_html
mget * */* */*/*
quit
----
unfortunately the last three commands have to be entered on the ftp
command line, far as I can tell. so: is there a way to pass these
instructions on to ftp from a shell script? I imagine this must be a
very ocmmon question...
thanks for your help, sorry if this is a little OT.
matt
Reply to: