Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hopefully this is a simple one. I'm running a perl script which unzips a file using gunzip. This was failing and it appears the script doesn't have permission to either read the the gz file or to create the unzipped file. The permissions on the file to unzip are rwxrwxrwx so I presume it must be an issue with creating the new file. I ran the script under sudo and the file was gunzipped successfully confirming a permissions issue.
How do I give the script permission to create the unzipped file? I am surprised by this as the script makes a directory in the same location without problem Thanks for your help
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: gunzip failure in perl script
by choroba (Cardinal) on Oct 30, 2010 at 00:38 UTC | |
Re: gunzip failure in perl script
by bichonfrise74 (Vicar) on Oct 29, 2010 at 22:34 UTC | |
Re: gunzip failure in perl script
by Anonymous Monk on Oct 29, 2010 at 21:56 UTC | |
by ag4ve (Monk) on Oct 30, 2010 at 09:27 UTC |