[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: PHP's CURL & Tor integration hangi



On 7/25/07, Mr. Blue <trashdsfg@xxxxxxxxx> wrote:
...
php -f chk_tor.php > /dev/null 2>&1 &
...
I want output that currently goes in /dev/null, be
saved in a variable ($OUTPUT), and then piped to mail
function where body=$OUTPUT

this is veering a bit off topic, but the following should work:

php -f chk_tor.php 2>&1 | mailx -s "my script output" root@localhost

if you don't have mailx, mail should work too.

best regards,