[Malvern] A bit of shell scripting
Chris Eilbeck
chris at yordas.demon.co.uk
Fri Dec 3 17:35:56 GMT 2004
On Fri, Dec 03, 2004 at 09:32:44AM +0000, Andy Lowton wrote:
> On Thu, 2004-12-02 at 21:37 +0000, Chris Eilbeck wrote:
> > On Thu, Dec 02, 2004 at 08:21:22PM -0000, Robin Wilson wrote:
>
> > #!/bin/csh
> >
> > wget http://wherever/whatever.jpg
> > mv -f whatever.jpg whatever-`date --iso-8601`.jpg
>
> If you condense it into one line then you don't even need the script you
> can just put the command straight into cron i.e
>
> wget http://wherever/whatever.jpg -O whatever-`date --iso-8601`.jpg
Don't you need the shell to concatenate "whatever-", the output from
the date command and ".jpg" ?
Chris
--
Chris Eilbeck mailto:chris at yordas.demon.co.uk
MARS Flight Crew http://www.mars.org.uk/
UKRA #1108 Level 2 UYB
TRA #9527 PSMR
More information about the Malvern
mailing list