Questions and Answers
Amy Rich
Q. Im writing a CGI script that takes input from a Web page and
does some data sanitizing for security purposes. To be sure that I catch everything,
Im running Perl with taint checks on. Every time I try to test the script,
however, I get the following error:
Too late for "-T" option at addform.cgi line 1.
Ive removed pretty much everything but the #! line from the script in order to debug this, and Im still getting the error. How can the first line of the script be too late, especially when thats pretty much the only thing in there? Heres the first line:
#!/usr/local/bin/perl -T A. You dont specifically say how youre testing this script, but Im guessing youre trying to execute it from the command line by running:
perl addform.cgi
If thats the case, Perl is complaining because youre calling it from the command line without specifying -T on the command line itself. You can either specify -T on the command line:
perl -T addform.cgi
or, better yet, dont invoke the command by calling Perl first. You can just make your script executable and call it as:
./addform.cgi Q. I have Solaris 8 running on an Ultra 450. Occasionally, when I attempt to do an init 6, I only get the prompt back and the machine refuses to shut down. I was under the impression that init 6 should bring the machine down and bring it back up to the default mode (multiuser, in our case). Is there some reason why init (I also tried shutdown) does not work?
A. Shutdown gives you the choice of sending out a message via wall and delaying the shutdown, but then it merely calls init. An init directive can fail if one of the rc.* shutdown scripts does not finish for some reason.
|