Greetings
> I want to know what user the system is running a particular utility as. The
> utility runs on demand within the mail system, and so is only intermittent.
> I could run top and stare at the screen until it runs again, and hope I
> have time to notice the user, but thats not much fun.
>
> I guess I could write a script to run ps aux|grep processname every few
> seconds and append the result to a file.
How about wrapping the actual process up in a script that dumps
the userid (?whoami?) to a file, then calls the real executable?
Theuns
KRN
-------------------------------------------------------------
Theuns Verwoerd 27 Nazareth Avenue
Software Engineer PO Box 8011
Allied Telesyn Research Christchurch
phone +64 3 339 3000 New Zealand
fax +64 3 339 3002 email: [EMAIL PROTECTED]
web: http://www.alliedtelesyn.co.nz/
-------------------------------------------------------------