simple shell scripting question

2002-10-07 Thread Matt Price
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

Re: simple shell scripting question

2002-10-07 Thread Thorsten Haude
Hi, * Matt Price <[EMAIL PROTECTED]> [02-10-07 23:44]: >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

Re: simple shell scripting question

2002-10-07 Thread Michael Heironimus
On Mon, Oct 07, 2002 at 05:44:53PM -0400, Matt Price wrote: > 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 The first thing I'd suggest is using one of the script-oriented FTP tools that was designed to w

Re: simple shell scripting question

2002-10-07 Thread Matt Price
Michael, thanks for the ref to ncftpput. I'l\l look into that and lftp, as someone else suggested. But re: the here script: does this work if I write it ina simple shell script? That is do I write a script thus: cd ~!/website ftp -i origin.chass.utoronto.ca< On Mon, Oct 07, 2002 at 05:44:53PM

Re: simple shell scripting question

2002-10-07 Thread Colin Watson
On Mon, Oct 07, 2002 at 07:03:25PM -0400, Matt Price wrote: > But re: the here script: They're actually usually called "here documents" or "heredocs". > does this work if I write it ina simple shell script? Yes. > That is do I write a script thus: > cd ~!/website That ! looks odd ... did you