Thank you all for your replies! Starting from the top...
Michael: You're right about that it is not exactly a copy of the script. The print statement for $data[1] is just something I had for debugging. I know that is not working. I also removed many lines of commented code that was not in use...
I'm not realy sure what you mean, but I hope it will be easier when I post the whole script:
----------------------------------------------------------
#!/usr/bin/perl -W
use DBI;
# Database info
my $db_name = "database";
my $db_user = "user";
my $db_pass = "password";
my...
Hi!
I have a code that works perfectly well when I'm running it from the command line in Linux. But when I'm running it as a cron job it doesn't seem to work. (I'm running it from /etc/crontab) I think I've figured out that it is the split function that stops working. It looks like this:
@data...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.