P
Peter Richards
Hi,
I've recently moved a website and one Perl script will not work. The
previous site had a Unix box with Perl 5.006 , and the new site has a
Linux box with Perl 5.006001
After inserting "print" statements all over the place, finally this
piece of code is where the script is stopping:
----------------------------------------------------------------------
system ("lockfile -2 -r 5 $base_dir/.lock" ) == 0 or diehtml("Lock
error: ", $? >> 8, "\n" ); # TODO stop stderr of system
--------------------------------------------------------------------
There is no msg appearing (what happened to the "diehtml" ?), the
script just stops. I have checked all the path and file permissions,
and they are exactly the same s the previous website. The variable
$base_dir has a value of '/home/username/public_html/.orders'
The 'shebang' line, etc is:
-----------------------------------------------
#!/usr/bin/perl -wT
use CGI qw/:standard/;
use DBI;
# resource limits
$CGI
ISABLE_UPLOADS = 1;
$CGI:
OST_MAX = 1024;
-----------------------------------------------
Any clues as to why this is stopping ?
Thanks,
Peter
Peter Richards
(e-mail address removed)
(but use hotmail to email)
I've recently moved a website and one Perl script will not work. The
previous site had a Unix box with Perl 5.006 , and the new site has a
Linux box with Perl 5.006001
After inserting "print" statements all over the place, finally this
piece of code is where the script is stopping:
----------------------------------------------------------------------
system ("lockfile -2 -r 5 $base_dir/.lock" ) == 0 or diehtml("Lock
error: ", $? >> 8, "\n" ); # TODO stop stderr of system
--------------------------------------------------------------------
There is no msg appearing (what happened to the "diehtml" ?), the
script just stops. I have checked all the path and file permissions,
and they are exactly the same s the previous website. The variable
$base_dir has a value of '/home/username/public_html/.orders'
The 'shebang' line, etc is:
-----------------------------------------------
#!/usr/bin/perl -wT
use CGI qw/:standard/;
use DBI;
# resource limits
$CGI
$CGI:
-----------------------------------------------
Any clues as to why this is stopping ?
Thanks,
Peter
Peter Richards
(e-mail address removed)
(but use hotmail to email)