View Single Post

   
  #7 (permalink)  
Old 02-19-2008, 07:18 AM
George Georgakis
 
Posts: n/a
Default Re: Completely O.T. but perhaps interesting Q.

"!christian" <seraphim76rhino@comcast.net> wrote:

> <?
> passthru("/sbin/ifconfig > test.dat");
> passthru("cat test.dat | mail -s \"My Lost IP\" you@your.domain");
> ?>
>
> You don't have to fool with over writing your crontab this way.


Now that I'm fully awake: Yes, you're correct. In fact the above can
be further condensed to:

<?
passthru("/sbin/ifconfig | mail -s \"My Lost IP\" you@your.domain");
?>

UUoC

--
George Georgakis-geeg AT tripleg net au-http://www.tripleg.net.au/
SlackBuild Central - http://slackpack.tripleg.net.au/
Reply With Quote