Agreed… start by changing ‘sh’ to ‘/bin/sh’ (or ‘/bin/bash’) just to
be sure, and then also check for that e-mail. The /var/log/messages
file should also have output from when it was attempted (if it was
attempted). Set to ‘* * * * *’ for testing, or something that runs
more-often than once per day.
Good luck.
ken yap wrote:
> If you had any commands in the shell script “schedule” that depended on
> your $PATH or $HOME, they would fail to run.
>
> You should have received email containing any output from the job. Have
> you looked for the email?
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
If you didn’t have postfix running the mail might have been lost. You can capture the output of the cron job by appending
> /tmp/schedule.log 2>&1
to the line.
In a cron job, various variables that are set in a normal interactive session are not. There is no $HOME because there is no login. And $PATH will be the system default.
Is this your personal crontab, edited with crontab -e, or the system crontab, /etc/crontab? In the second case you need to specify the user in the 6th field, like this:
for system_dir in
drive_c/windows/fonts
drive_c/windows/inf
drive_c/windows/system
drive_c/windows/system32
; do
if -h “$WINEPREFIX/$system_dir” ] ; then
if stat --dereference --format %i "$WINEPREFIX/$system_dir" = stat --dereference --format %i "$navicat_root/wine/$system_dir" ] ; then
continue;
fi
-d “$WINEPREFIX/$system_dir” ] || rm -f “$WINEPREFIX/$system_dir”
fi
‘’ -d /home/pathp/.navicat/Navicat ‘]’
(cd “$navicat_root/Navicat”;
for x in * ; do
oldlink=“pwd/$x”
newlink=“$WINEPREFIX/Navicat/$x”
if -h “$newlink” ] ; then
if stat --dereference --format %i "$oldlink" = stat --dereference --format %i "$newlink" ] ; then
continue;
fi
-d “$newlink” ] || rm -f “$newlink”
fi
-d "$newlink" ] || ln -s "$oldlink" "$newlink"
done
)
cd /home/pathp/Navicat/Navicat
for x in ‘*’
pwd
++ pwd
oldlink=/home/pathp/Navicat/Navicat/Navicat.exe
newlink=/home/pathp/.navicat/Navicat/Navicat.exe
‘’ -h /home/pathp/.navicat/Navicat/Navicat.exe ‘]’
stat --dereference --format %i “$oldlink”
++ stat --dereference --format %i /home/pathp/Navicat/Navicat/Navicat.exe
stat --dereference --format %i “$newlink”
++ stat --dereference --format %i /home/pathp/.navicat/Navicat/Navicat.exe
‘’ 1425955 = 1425955 ‘]’
continue
for x in ‘*’
pwd
++ pwd
oldlink=/home/pathp/Navicat/Navicat/help
newlink=/home/pathp/.navicat/Navicat/help
‘’ -h /home/pathp/.navicat/Navicat/help ‘]’
stat --dereference --format %i “$oldlink”
++ stat --dereference --format %i /home/pathp/Navicat/Navicat/help
stat --dereference --format %i “$newlink”
++ stat --dereference --format %i /home/pathp/.navicat/Navicat/help
‘’ 1425411 = 1425411 ‘]’
continue
for x in ‘*’
pwd
++ pwd
oldlink=/home/pathp/Navicat/Navicat/libeay32.dll
newlink=/home/pathp/.navicat/Navicat/libeay32.dll
‘’ -h /home/pathp/.navicat/Navicat/libeay32.dll ‘]’
stat --dereference --format %i “$oldlink”
++ stat --dereference --format %i /home/pathp/Navicat/Navicat/libeay32.dll
stat --dereference --format %i “$newlink”
++ stat --dereference --format %i /home/pathp/.navicat/Navicat/libeay32.dll
for system_dir in
drive_c/windows/fonts
drive_c/windows/inf
drive_c/windows/system
drive_c/windows/system32
; do
if -h “$WINEPREFIX/$system_dir” ] ; then
if stat --dereference --format %i "$WINEPREFIX/$system_dir" = stat --dereference --format %i "$navicat_root/wine/$system_dir" ] ; then
continue;
fi
-d “$WINEPREFIX/$system_dir” ] || rm -f “$WINEPREFIX/$system_dir”
fi
‘’ -d /home/pathp/.navicat/Navicat ‘]’
(cd “$navicat_root/Navicat”;
for x in * ; do
oldlink=“pwd/$x”
newlink=“$WINEPREFIX/Navicat/$x”
if -h “$newlink” ] ; then
if stat --dereference --format %i "$oldlink" = stat --dereference --format %i "$newlink" ] ; then
continue;
fi
-d “$newlink” ] || rm -f “$newlink”
fi
-d "$newlink" ] || ln -s "$oldlink" "$newlink"
done
)
cd /home/pathp/Navicat/Navicat
for x in ‘*’
pwd
++ pwd
oldlink=/home/pathp/Navicat/Navicat/Navicat.exe
newlink=/home/pathp/.navicat/Navicat/Navicat.exe
‘’ -h /home/pathp/.navicat/Navicat/Navicat.exe ‘]’
stat --dereference --format %i “$oldlink”
++ stat --dereference --format %i /home/pathp/Navicat/Navicat/Navicat.exe
stat --dereference --format %i “$newlink”
++ stat --dereference --format %i /home/pathp/.navicat/Navicat/Navicat.exe
‘’ 1425955 = 1425955 ‘]’
continue
for x in ‘*’
pwd
++ pwd
oldlink=/home/pathp/Navicat/Navicat/help
newlink=/home/pathp/.navicat/Navicat/help
‘’ -h /home/pathp/.navicat/Navicat/help ‘]’
stat --dereference --format %i “$oldlink”
++ stat --dereference --format %i /home/pathp/Navicat/Navicat/help
stat --dereference --format %i “$newlink”
++ stat --dereference --format %i /home/pathp/.navicat/Navicat/help
‘’ 1425411 = 1425411 ‘]’
continue
for x in ‘*’
pwd
++ pwd
oldlink=/home/pathp/Navicat/Navicat/libeay32.dll
newlink=/home/pathp/.navicat/Navicat/libeay32.dll
‘’ -h /home/pathp/.navicat/Navicat/libeay32.dll ‘]’
stat --dereference --format %i “$oldlink”
++ stat --dereference --format %i /home/pathp/Navicat/Navicat/libeay32.dll
stat --dereference --format %i “$newlink”
++ stat --dereference --format %i /home/pathp/.navicat/Navicat/libeay32.dll