Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Call URL via command line and save output every minute ?! 1

Status
Not open for further replies.

TSch

Technical User
Jul 12, 2001
557
DE
Hi folks,

someone I know created some kind of "riddle".

There's a URL ( that's supposed to display the solution for a period of 1 Minute every day. The excact time of day is unknown and changes every day.

Now my idea was the following:

Is it possible (Without graphical display) to somehow call this URL automatically via command line every minute and save the output somewhere ?

Regards,
Thomas
 
Hi

Code:
* * * * * wget -O "/tmp/something-$( date +'%F_%T' ).html" "[URL unfurl="true"]http://something.com/something.php"[/URL]

Feherke.
feherke.github.io
 
Feherke, the percent sign (%) is very special in a crontab ...
 
Hi

PHV said:
Feherke, the percent sign (%) is very special in a crontab ...
Yepp. Very special for me too : there may be a decade since I struggle to remember it. Thank you, PHV.
( BTW, the code I posted was tested with [tt]dcron[/tt] ( Dillon's Cron ) 4.5. )


Feherke.
feherke.github.io
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top