/* sender: "M. Sokolewicz" date: "Thu, Oct 07, 2004 at 02:32:17PM +0200" */
> ...
> You can call this as follows:
> ----
> * * * * * * wget 
> http://www.example.net/scripts/bin/mail.php?user=a&pass=b ; rm -f ./mail.php
> ----
> 
> The first part will call the server via an http connection to run the 
> script and show its output. It then downloads it to the directory run 
> from, and saves it. That is what wget does. The second part, after the 
> semicolon, the 'rm -f ./mail.php' will make sure to get rid of the file 
> after it's been run.

Very nice solution :)
Just one observation: you can use the -O parameter of wget, and get rid of rm

----
* * * * * * wget http://www.example.net/scripts/bin/mail.php?user=a&pass=b -O /dev/null
----

Alex

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to