uot;$article{maintext}\n";
print "$article{moretext}\n";
print "";
}
sub printfile {
#Prints either header or footer
$file = shift;
$fileuc = uc($file);
open $fileuc, "config/$file.data" or die "Could not open file $file.data:
$!\n";
while (<$fileuc>) {
print $_
Damien wrote:
: open ARTICLE, "$bkup_dir/$artid.data" or die "Could not open article data file
:$bkup_dir/$artid.data: $!\n";
By the way, if the die() message doesn't end in a newline, then die()
will tell you what line of what script it died on. This is invaluable
for debugging.
-- tdk
just my 2 bits,
Jos Boumans
- Original Message -
From: "Damien Tanner" <[EMAIL PROTECTED]>
To: "Perl" <[EMAIL PROTECTED]>
Sent: Monday, May 21, 2001 8:33 PM
Subject: Help with CGI script
hi,
I'm just tryin gtoo wite a CGi script that will make
Damien wrote:
: ...
: So here are the files, and I home someone can help :)
: ...
It would be a lot more useful if you could get the error message in
your server's error log. Find out where this is and tattoo that
location on the inside of your eyelids. The error log is a CGI
programmer's best f
hi,
I'm just tryin gtoo wite a CGi script that will make html pages of articles, via an
admin interface. I know there are millions of things like that around. I'm just doing
it for programming practice.
It's quite a long script.The main probem is I get an Internal Server Error when I
run
You cannot call passwd with the password as a parameter.
(btw. this is a feature, not a bug :-)
Look at the Expect Module (available on CPAN). It lets you automate
interactive programs (like passwd).
hope that helps,
cr
On Mon, 14 May 2001 09:10:54 +0100, n6tadam said:
> Dear List,
>
> I am
Dear List,
I am trying to write a cgi-script that adds a new user to my linux box via a
web based form.
The trouble is, is how do I pass variables to the program "passwd"?? This is
so that when the password is sent via the form, it erncrypts the password,
and adds the user??? Has anyone got any