Manasi Bopardikar <[EMAIL PROTECTED]> asked: > I want to change the ownership of my perl script through my > script.Currently it is root .I want to change it to apache. > > I am using system("chown apache:apache simple.pl"); > > Simple.pl is the name of my perl script
See "perldoc -f chown" on how to use the native chown function of Perl. Use "use FindBin qw($Bin);" then use $Bin in your script to refercence the script's filename. Changing the scripts's ownership will probably only work if it is run as root. HTH, Thomas -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/