On Tuesday 14 August 2001 09:23, John Blaze wrote:

> printstatus" command and prints it out to a webpage. I dont know if its too
> advanced but any input from you guys would be great.

You could put the sudo command in back quotes and capture the output to a 
straight text file.  Load that text file in a web browser and you have a 
quick, easy report.  Here's some code (a script called gen_report.pl):

#!/usr/bin/perl
print `sudo printstatus`;

Call this periodically by running "gen_report.pl > report.txt" in a cron job. 
 Of course, you'll have to have someone who knows how to configure Sudo 
properly if you're going to run this as a user other than the one you 
normally run it as.

Regards,

Troy





-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to