> system("/etc/rc.d/init.d/gmetad stop");
> system("cp -p $oldrrdfile $oldrrdfile.orig");
> system("cp -p $newrrdfile $oldrrdfile");
> system("/etc/rc.d/init.d/gmetad start");

Just remove the "-p" on the second cp and it should inherit the perms
from the original file, negating the need for a chown or chmod.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general

Reply via email to