Changing file ownership

2003-10-20 Thread Rick Edwards
I'm trying to change the ownership and permissions on a file but using unless (`chown root:root $working_file`) { do_something } Throws an "illegal seek" error. The only other alternative is to stat a file owned by root to get the uid etc, and then use perl's in built chown function to change

RE: call one perl script within another

2003-10-22 Thread Rick Edwards
System will fork a second shell process from the parent and wait for a response when the child process exits (which sounds like what you want). This is not so efficient as exec which kills the parent process. For system: my $return = system (my_script, my_argument); Will start a child process an