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:DISABLE_UPLOADS = 1; $CGI::POST_MAX = 1024;
Any clues as to why this is stopping ?
Thanks,
Peter
In reply to Perl script crashing at lockfile ? by peterr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |