in reply to Here's the script thats giving me trouble

Two thoughts:
  1. Check your webserver error logs
  2. check the return code on your system call:
    system($arg) or die $!;
    (a "use CGI::Carp qw{fatalsToBrowser};" would help here too....)
  3. Try providing the full path to towerabc and the data file.
and I'm not even gonna mention that putting data files and non-cgi programs in your cgi-bin directory is a bad ideatm.

Replies are listed 'Best First'.
Re: Re: Here's the script thats giving me trouble
by Masem (Monsignor) on Mar 11, 2001 at 18:39 UTC
    Agree on point 3: you cannot guarentee what PWD or PATH the script will be working under when you call the script via the web browser (Well, you COULD, but you shouldn't rely on this information). If you ever have to call anything external outside of perl, you should always include the full path to programs or data files.
    Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain
i'm getting this error message on the webpage
by Gremlin (Acolyte) on Mar 11, 2001 at 18:39 UTC
    Incrementally linked image--PC correlation disabled.
    ...the rest of stuff is just the program outputs then this: execution finished - press return to terminate Content type: text/html <HTML> <HEAD> <TITLE>Hello World</TITLE> </HEAD> <BODY> <H4>Hello World</H4> <P> Your IP Address is $ENV{REMOTE_ADDR}. <P><H5>Have a nice day</H5> </BODY> </HTML> command prompt here again
      I'm not sure that I understand what's going on, but you may want to print out the HTTP headers at the very beginning. It looks like maybe some other output is being sent before the header lines.

      I'm confused about "command prompt here again" at the end. Are you saying that there's a command prompt in your web page?

      buckaduck