Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Append a tools status to the command line..

by lhoward (Vicar)
on Apr 14, 2002 at 21:20 UTC ( #159009=note: print w/replies, xml ) Need Help??


in reply to Append a tools status to the command line..

This doesn't work in every OS (it does work in Linux, but I think it doesn't work in solaris)... you can set $0, which will influence what you see when you do a ps:
#!/bin/perl -w use strict; my $pr=$0; for(1..10){ $0=$pr." processing $_"; sleep 5; }
when I run this code on my linux box and do a ps -ef to see what # it is currently on in the loop....

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://159009]
help
Chatterbox?
[Corion]: Hi Discipulus!
[Discipulus]: your chautauqua was important for me
[Discipulus]: Hi Corion here is holiday: the best we have Liberation Day
[Discipulus]: waiting sons to finish home assignments and we go out to some park
[Corion]: Discipulus: Oh ;) I'm looking forward to 1st of May - the next holiday here ;)

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2017-04-25 11:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (449 votes). Check out past polls.