Script produces nothing when run from web page

2006-10-24 Thread Richard Luckhurst
Hi All I have a simple perl cgi script that works fine and produces the correct output when run from a command line. However when called as a cgi script from within a web page the script does not run correctly. The script is called log-errors and is called as follows log-errors?domain=www.resmas

Re: Script produces nothing when run from web page

2006-10-24 Thread John Kennedy
Hi , I am no expert but I would guess that cgi runs in a restricted environment and doesn't have a full PATH, thus it doesn't know how to call tail and tac. I'd try putting the full path to these in the script. /usr/bin/tail /usr/bin/tac instead of just tail and tac. HTH, if not I am sure so