On Saturday 08 October 2005 13:02, Raghunandan Rao wrote:
Hi, A script is needed which comments the second line of the file and removes ones condition is fulfilled.. For example as mentioned down, I'm checking for the free memory, when it comes to some 50MB it should the comment the '#' at second line of the file /service/run and when the free memory comes to 200 it should remove '#' killing the process or perl. The script below is incomplete..
Please do respond it urgently.. Thanks in advance
Please tell us your problem. Because memory management should be left to the kernel. And Linux / UNIX kernels are pretty good at managing memory ;)