Its going to be rather involved in my opinion ... suod will prompt for a
password so you need to use something called Expect to interactively put the
password in ...

one way might be to write a script that prints the output to a webpage and run
that as root ... sorry i know this does not help but I cant think of anything
better ...

On Tue, Aug 14, 2001 at 09:23:41AM -0400, John Blaze shaped the electrons to read:
> Hi guys i'm having a problem. It might be kinda easy to some and kinda hard 
> to others, but i'd really appreciate it if you could help me out.
> 
> I can type in a unix command called "sudo printstatus" that checks the 
> status of printers in my school printer lab. Frankly i'm getting tired of 
> typing in this command, and i dont have any type of unix shell at my home 
> computer.
> 
> An administrator friend of mine can write a program in unix that  runs a 
> certain script lets say every 30 seconds. I would like to know how i would 
> even begin to write a perl script that reads from the unix "sudo 
> 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.
> 
> Thanks for your time
> 
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
> 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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

Reply via email to