On Mon, Dec 11, 2000 at 06:27:17PM +1100, Terry Collins wrote:

> I want to use cron to periodically copy a file "webcam3.jpeg" to a
> filename based on the current day and time, but I'm unable to workout
> how to do this as a bash shell command.
> It will be something like
> 
> cp webcam3.jpeg  sproutcam + date '+%m%d%H%M' + .jpeg

Like this:

cp webcam3.jpeg  sproutcam`date +%m%d%H%M`.jpeg

Taking the date/time of your message as an example (18:27 11 December),
you'll get `sproutcam12111827.jpeg' as the filename.

Cheers,

John
-- 
whois [EMAIL PROTECTED]


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to