Using wget to save sequential files as well as renaming the file extension
Posted
by
Ian
on Server Fault
See other posts from Server Fault
or by Ian
Published on 2011-04-12T07:07:10Z
Indexed on
2012/10/05
21:40 UTC
Read the original article
Hit count: 315
wget
I run a cron job that requests a snapshot from a remote webcam at a local address:
wget http://user:[email protected]/snapshot.cgi
This creates the files snapshot.cgi
, snapshot.cgi.1
, snapshot.cgi.2
, each time it's run.
My desired result would be for the file to be named similar to file.1.jpg
, file.2.jpg
. Basically, sequentially or date/time named files with the correct file extension instead of .cgi
.
Any ideas?
© Server Fault or respective owner