For years I use a small script to log the number of processes running on
my FreeBSD server.
Since I've switched from 4.x to 5.4, the number of processes is stuck to
128.
The number of processes was given by :
ls /proc | wc -l
Now I use
/bin/ps aux | wc -l
which gives a more correct result.
That makes me wonder if /proc is not limited to 128 items... any idea ?
Re: How do I properly use global variables? ... You might want to try the following call your script twice with the start ... then look at the processes running (just send the output of the ... You will see the script running twice, this is because you started the Perl ... I'd like my program below to change $status to zero to exit the loop.... (perl.beginners)
Re: Quick Mailing List Solution ... >> was wondering if there was a way i could use my FreeBSD server to do ... > the message headers and personalises the message to the recipient.... If this is a one time thing, try using the attached perl script.... event you might want to consider using a mailing list package like ... (freebsd-questions)
Failover Scripts ... I need to run a script before a service is failed. ... If I just stop the service it leaves a couple of processes running - no problem if the server is shut down, but if I just want to manually failover the process, I can't fail it back as the child processes are still holding open ports. ... I have a shutdown script - but does clustering support the calling of this before initiating a failure - much like the dependancies before starting a service but in reverse? ... (microsoft.public.windows.server.clustering)
Re: No redirection output ... I have written a sh script to run a program and redirect the output to ... Does myprog put itself in the background, ... the script results in two or three processes running at the same time? ... (comp.unix.shell)