[Malvern] A bit of shell scripting
Chris Eilbeck
chris at yordas.demon.co.uk
Thu Dec 2 21:37:36 GMT 2004
On Thu, Dec 02, 2004 at 08:21:22PM -0000, Robin Wilson wrote:
> Hi all,
Wotcha!
> If possible I'd like to write a shell script that can be run using cron
> which will download a file (maybe using wget) and save it as something
> like the following: SynopticChart_14-07-2004 (for the 14th of July
> 2004). Is there a reasonably simple way to do this in a shell script or
> something similar?
#!/bin/csh
wget http://wherever/whatever.jpg
mv -f whatever.jpg whatever-`date --iso-8601`.jpg
Something like that?
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