Re: Can I Set Process Name?

2003-07-08 Thread Drew Tomlinson
- Original Message - From: "Daniel Bye" <[EMAIL PROTECTED]> To: "FreeBSD Questions" <[EMAIL PROTECTED]> Sent: Tuesday, July 08, 2003 9:52 AM > On Tue, Jul 08, 2003 at 09:11:20AM -0700, Drew Tomlinson wrote: > > Thanks for the tutorial. I'm going to drop this as it's not that > > importan

Re: Can I Set Process Name?

2003-07-08 Thread Daniel Bye
On Tue, Jul 08, 2003 at 09:11:20AM -0700, Drew Tomlinson wrote: > Thanks for the tutorial. I'm going to drop this as it's not that > important. I can always figure out which one is webmin as it is > listening on port 1 and I can see it in the sockstat output. I just > thought if I could chan

Re: Can I Set Process Name?

2003-07-08 Thread Drew Tomlinson
- Original Message - From: "Daniel Bye" <[EMAIL PROTECTED]> To: "FreeBSD Questions" <[EMAIL PROTECTED]> Sent: Tuesday, July 08, 2003 9:00 AM Subject: Re: Can I Set Process Name? > > On Tue, Jul 08, 2003 at 08:43:12AM -0700, Drew Tomlins

Re: Can I Set Process Name?

2003-07-08 Thread Daniel Bye
On Tue, Jul 08, 2003 at 08:43:12AM -0700, Drew Tomlinson wrote: > - Original Message - > From: "Daniel Bye" <[EMAIL PROTECTED]> > To: "FreeBSD Questions" <[EMAIL PROTECTED]> > Sent: Tuesday, July 08, 2003 8:29 AM > > On Tue, Jul 08, 2003 at 08:26:45AM -0700, Drew Tomlinson wrote: > > > >

Re: Can I Set Process Name?

2003-07-08 Thread Drew Tomlinson
- Original Message - From: "Daniel Bye" <[EMAIL PROTECTED]> To: "FreeBSD Questions" <[EMAIL PROTECTED]> Sent: Tuesday, July 08, 2003 8:29 AM On Tue, Jul 08, 2003 at 08:26:45AM -0700, Drew Tomlinson wrote: > > > > $0='webmin'; ^ > > > > However when starting the program it die

Re: Can I Set Process Name?

2003-07-08 Thread Tobias Grosser
On Tue, 8 Jul 2003 08:26:45 -0700 "Drew Tomlinson" <[EMAIL PROTECTED]> wrote: > Is there something really easy I'm missing? If it's complicated I'm Try to write a semicolon at the end of the line. #!/usr/bin/perl # A very simple perl web server used by Webmin $0='webmin'; # Require basic lib

Re: Can I Set Process Name?

2003-07-08 Thread Daniel Bye
On Tue, Jul 08, 2003 at 08:26:45AM -0700, Drew Tomlinson wrote: > > $0='webmin'; ^ > > However when starting the program it dies with the following message: > > Is there something really easy I'm missing? If it's complicated I'm > going to forget it as it's not that important. Yes

Re: Can I Set Process Name?

2003-07-08 Thread Drew Tomlinson
- Original Message - From: "Simon Barner" <[EMAIL PROTECTED]> To: "Rob" <[EMAIL PROTECTED]> Cc: "Drew Tomlinson" <[EMAIL PROTECTED]>; "FreeBSD Questions" <[EMAIL PROTECTED]> Sent: Tuesday, July 08, 2003 8:14 AM > > setproctitle(3) - but I don't know how you would call it from perl. > You

Re: Can I Set Process Name?

2003-07-08 Thread Simon Barner
> setproctitle(3) - but I don't know how you would call it from perl. You can do it by altering the $0 variable: #!/usr/bin/perl -w use strict; $0='Will it work?'; sleep (10); A ps | grep 'Will' gives me: 2551 p3 SN 0:00.02 Will it work? (perl) Regards, Simon signature.asc Descrip

Re: Can I Set Process Name?

2003-07-08 Thread Rob
setproctitle(3) - but I don't know how you would call it from perl. - Original Message - From: "Drew Tomlinson" <[EMAIL PROTECTED]> To: "FreeBSD Questions" <[EMAIL PROTECTED]> Sent: Wednesday, July 09, 2003 12:09 AM Subject: Can I Set Process Name?

Can I Set Process Name?

2003-07-08 Thread Drew Tomlinson
Is there a way to either change the name of a running process or start the process with a name of my choosing? On my system, I am running webmin and spamd. Both processes show in ps -acux output as "perl". blacklamb# ps -acux | grep perl root 22476 0.0 2.9 6760 5576 ?? Ss Sat11AM