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?
Is there a way to either change the name of a
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
- 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 can do it by
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 - a
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
- 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 dies with the
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:
$0='webmin';
- 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 Tomlinson wrote:
- Original Message -
From: 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 change
- 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
important. I can
10 matches
Mail list logo