You are not logged in.
Pages: 1
I have a job scheduled using crontab -e
45 17 20 * * storeBackupMount.pl -f /etc/storebackup.d/storebackupmount.confI have set the time and date for testing purposes. I is usually at 3AM on the first day of the month.
Where storeBackupMount.pl is a perl script that requires the configuration file storebackupmount.conf
If I run this command from the cli, it runs as it should.
If I set the time and date in the cron file, I get this result from sudo systemctl status cronie:
:
● cronie.service - Periodic Command Scheduler
Loaded: loaded (/usr/lib/systemd/system/cronie.service; enabled; preset: disabled)
Active: active (running) since Fri 2023-01-20 16:35:10 MST; 1h 16min ago
Main PID: 11948 (crond)
Tasks: 1 (limit: 77036)
Memory: 2.1M
CPU: 185ms
CGroup: /system.slice/cronie.service
└─11948 /usr/bin/crond -n
Jan 20 17:15:01 ASU-X99 CROND[13300]: (bart) CMDOUT (STDERR of <pod2text>:cannot exec pod2text /usr/bin/storeBackupMount.pl)
Jan 20 17:15:01 ASU-X99 CROND[13300]: (bart) CMDEND (storeBackupMount.pl -f /etc/storebackup.d/storebackupmount.conf)
Jan 20 17:15:01 ASU-X99 CROND[13300]: pam_unix(crond:session): session closed for user bart
Jan 20 17:40:01 ASU-X99 crond[11948]: (root) CAN'T OPEN (/etc/crontab): No such file or directory
Jan 20 17:40:01 ASU-X99 crond[11948]: (bart) RELOAD (/var/spool/cron/bart)
Jan 20 17:45:01 ASU-X99 crond[13868]: pam_unix(crond:session): session opened for user bart(uid=1000) by (uid=0)
Jan 20 17:45:01 ASU-X99 CROND[13869]: (bart) CMD (storeBackupMount.pl -f /etc/storebackup.d/storebackupmount.conf)
Jan 20 17:45:01 ASU-X99 CROND[13868]: (bart) CMDOUT (STDERR of <pod2text>:cannot exec pod2text /usr/bin/storeBackupMount.pl)
Jan 20 17:45:01 ASU-X99 CROND[13868]: (bart) CMDEND (storeBackupMount.pl -f /etc/storebackup.d/storebackupmount.conf)
Jan 20 17:45:01 ASU-X99 CROND[13868]: pam_unix(crond:session): session closed for user bart
~It shows the job is being called but can't be run.
I don't understand the <pod2text> part of the error.
Offline
https://man.archlinux.org/man/core/perl … t.1perl.en
The cron daemon lacks "/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl" in its $PATH, try
45 17 20 * * env PATH="$PATH:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl" storeBackupMount.pl -f /etc/storebackup.d/storebackupmount.confOffline
https://man.archlinux.org/man/core/perl … t.1perl.en
The cron daemon lacks "/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl" in its $PATH, try45 17 20 * * env PATH="$PATH:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl" storeBackupMount.pl -f /etc/storebackup.d/storebackupmount.conf
You're my hero! When I grow up I want to be just like you!
Am I correct that when this process completes, the perl additions will be removed from the environment?
There is nothing in /usr/bin/site_perl. Am I missing something?
I'm thinking I should have seen a "file not found" message somewhere in one of the log files. Where would that be?
Thanks again!
Offline
env sets the environment, runs the give process and then terminates - nothing will be removed, but the context terminates w/ the subprocess (storeBackupMount.pl, or rather perl in this case)
/usr/bin/site_perl is canonically added to the path by perl in interactive shells, but by default empty - it's not relevant in the specific case, but might if some perl script relies on that path.
There's no "file not found", the error comes out of the perl script and the critical information is just "STDERR of <pod2text>:cannot exec"
wtr your other question:
https://en.wikipedia.org/wiki/Set_(deity)
https://commons.wikimedia.org/wiki/File … ate%29.svg
Offline
Interesting.
Offline
I just use chaotic gods as my usernames (typically fitting the hostname)
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Offline
Pages: 1