AbraKdabra has asked for the wisdom of the Perl Monks concerning the following question:
So, if I run that in console (pagos.pl is my script, that calls the other script inside):*some script* #Here I run a external script, that needs to be executed as bibatch us +er (sudo -u bibatch) system ("/opt/progressor/PRODEHPT/TECHTEL/PROCESO_COBRANZAS.sh");
sudo -u bibatch /usr/bin/perl /home/bibatch/Pagos/scripts/pagos.pl
It runs like a charm, executes my script and then it calls the other one, BUT, if I put that line in crontab, it doesn't run:minute hour * * * "sudo -u bibatch /usr/bin/perl /home/bibatch/Pagos/scripts/pagos.pl"
Neither my script (pagos.pl) nor the inside one I call (PROCESO_COBRANZAS.sh). Any ideas? Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl script in crontab
by roboticus (Chancellor) on Nov 20, 2010 at 05:03 UTC | |
by AbraKdabra (Initiate) on Nov 20, 2010 at 05:48 UTC | |
|
Re: Perl script in crontab
by JavaFan (Canon) on Nov 20, 2010 at 20:32 UTC | |
|
Re: Perl script in crontab
by Anonymous Monk on Nov 20, 2010 at 21:42 UTC | |
by Anonymous Monk on Nov 20, 2010 at 21:51 UTC |