Can I Set Process Name?
    Simon Barner 
    barner at in.tum.de
       
    Tue Jul  8 08:14:43 PDT 2003
    
    
  
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: Digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20030708/25745f9a/attachment.bin
    
    
More information about the freebsd-questions
mailing list