Re: Checking for Directory Existence

2001-08-16 Thread David Rankin
>-- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] -- David Rankin President, Surf This! Web Design Inc. Tel: 401.277.9966/877.528.5213 Fax: 603.590.4925 Email: [EMAIL PROTECTED] http://www.surfthisdesign.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Sendmail w/perl

2001-08-14 Thread David Rankin
I just ran into this exact same problem myself--piping an alias to a perl script through a version of sendmail running smrsh. Assuming that you're absolutely sure that the script really is being called, you might want to check that smrsh has permission to write to that directory/file. It's not g

Re: Tertiary Operator Question

2001-08-13 Thread David Rankin
Thanks! I've been trying to figure that out for hours! Now I actually get it! -Dave On Tue, 14 Aug 2001 00:09:59 +0200, Paul Johnson wrote: >On Mon, Aug 13, 2001 at 05:50:14PM -0400, David Rankin wrote: > >> #!/usr/bin/perl -w >> use strict; >> my $num=

Tertiary Operator Question

2001-08-13 Thread David Rankin
Hi Everybody, I'm having trouble figuring out the way the tertiary operator evaluates and returns data. Here's what I don't get . . . If I do this: #!/usr/bin/perl -w use strict; my $num=3; $num==3 ? print "Num equals 3" : print "Num does not equal 3"; I get what I'd expect, "Num equals 3" ge

RE: fetchrow_array problem with DBI

2001-07-25 Thread David Rankin
'SELECT * FROM tbl_clients') >or die "Couldn't prepare statement: " . $dbh; > >$sth->execute() or die "Execute Failed"; > >my @data; >while(@data=$sth->fetchrow_array()) { ## The offending line >

fetchrow_array problem with DBI

2001-07-25 Thread David Rankin
data[1]; my $clientname=$data[2]; print "NAME: $clientname\nID: $clientid\n\n"; } $sth->finish; $dbh->disconnect; Thanks in advance! -Dave -- David Rankin Tel: 401.277.9966/877.528.5213 Fax: 603.590.4925 Email: [EMAIL PROTECTED] http://www.surfthisdesign.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: redirect how to?

2001-07-07 Thread David Rankin
xample, the following prints some html including the refresh header and redirects the user's browser. #!/usr/bin/perl -w print "Content-type: text/html\n\n"; print < http://www.perl.org";> This is the html message part. MSG -Dave -- David Rankin President, Sur

Re: redirect how to?

2001-07-07 Thread David Rankin
g. It is really >infuriating not being able to do such a seemingly simple task! I'm not sure if you're really putting pound sign at the beginning of each line in your code (like in your email) but that's telling perl those lines are just comments, so it's not gonna try

Executing Script from Sendmail

2001-07-05 Thread David Rankin
Hello, I am trying to write a script that is run by piping email to it from an alias. The script is running on Red Hat Linux 7.0, and the MTA's sendmail. I'm also using smrsh. I'm not sure if the problem is with the script or something else, but here's the code I'm using (just for testing righ

Executing Script from Sendmail

2001-07-03 Thread David Rankin
Hello, I am trying to write a script that is run by piping email to it from an alias. The script is running on Red Hat Linux 7.0, and the MTA's sendmail. I'm also using smrsh. I'm not sure if the problem is with the script or something else, but here's the code I'm using (just for testing righ