Current Issue


Table of contents

CD-ROM

Sys Admin and The Perl Journal CD-ROM version 12.0

Version 12.0 delivers every issue of Sys Admin from 1992 through 2006 and every
issue of The Perl Journal from 1996-2002 in one convenient CD-ROM!

Order now!

Sys Admin Magazine > Archives > 2002 > February

Questions and Answers

Amy Rich

Q. I’m 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, I’m 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.

I’ve removed pretty much everything but the #! line from the script in order to debug this, and I’m still getting the error. How can the first line of the script be too late, especially when that’s pretty much the only thing in there? Here’s the first line:

#!/usr/local/bin/perl -T
A. You don’t specifically say how you’re testing this script, but I’m guessing you’re trying to execute it from the command line by running:

perl addform.cgi
If that’s the case, Perl is complaining because you’re 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, don’t 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.




MarketPlace

Flowcharts from C/C++ code -- Free trial download
Understand C/C++ code in less time. A new team member ? Inherited legacy code ? Get up to speed faster with Crystal Flow for C/C++. Code-formatting improves readability. Flowcharts are integrated with code browser. Export flowcharts to Visio.

Automate Software Builds with Visual Build Pro
Easily create an automated, repeatable process for building and deploying software.

Discover WinDev 12 RAD
and develop 10 times faster ! ALM, IDE, .Net, PDF, 5GL, Database, 64-bit, etc. Free Express version

Web based bug tracking - AdminiTrack.com
AdminiTrack offers an effective web-based bug tracking system designed for professional software development teams.

Wanna see your ad here?