Page 1 of 1

Run "cron command" from browser?

Posted: Tue Jan 10, 2006 5:16 pm
by jmueller0823
We have a cron that runs wget, something like this:

Code: Select all

/usr/local/bin/wget -N -q -P public_html http://www.site.com/stage/index.php
There are occasions when we need to quickly run this--
without going to Putty and running manually.

Is there a way to execute this from a browser? Thanks.

Posted: Tue Jan 10, 2006 5:22 pm
by pickle
You can run that command from a PHP file:

Code: Select all

<?PHP

$command = "/usr/local/bin/wget -N -q -P public_html http://www.site.com/stage/index.php";
shell_exec($command);

?>