Re: [SQL] a script that queries database periodically

From: Date: Mon, 27 Nov 2000 23:06:26 +0000
Subject: Re: [SQL] a script that queries database periodically
References: 1 2  Groups: php.db php.general 
Request: Send a blank email to php-db+get-4784@lists.php.net to get a copy of this message
On Mon, Nov 27, 2000 at 10:44:39PM +0100, Poul L. Christiansen allegedly wrote: > I have a bash script in crontab with the following line: > "lynx -dump > > http://127.0.0.1/postgres/myPhpFile.php>${currentDir}php_output.html" > > You can also just put that line directly into crontab. > > Poul L. Christiansen Be sure to redirect the output of the command in your crontab to /dev/null or something similar. If you don't, the output (HTML) will be emailed to you each time the script is run. Whether this side effect is desirable is of course up to you (or your boss, for instance). Getting even more off-topic, Mathijs -- "Where is human nature so weak as in a bookstore!" Henry Ward Beecher (1813-1887)

« previous php.db (#4784) next »