"be consistent" | |
PerlMonks |
Re: System commands using CGIby blue_cowdawg (Monsignor) |
on Dec 03, 2012 at 17:06 UTC ( [id://1006914]=note: print w/replies, xml ) | Need Help?? |
This is a very common "gotcha" that it would seem all Perl programmers and Perl programmer wannabes go through at some point in their Perl travels. Stepping back from your original complaint for just a second let me share with you my typical approach for troubleshooting a CGI problem.
Given your original complaint I'd look at system permissions for both running the command in the first place (which is why your code will behave differently at the command line than when run from CGI). Typically CGI is run as a non-elevated user and on some *nix systems it is run as "nobody" or "nofiles" which will eliminate your ability to create/modify files. Hope this helps you along your way. Peter L. Berghold -- Unix Professional Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg
In Section
Seekers of Perl Wisdom
|
|