1 |
Mick writes: |
2 |
|
3 |
> I am getting a bit confused from the messages that I receive in my |
4 |
> gmail account sent from my crontab. |
5 |
> |
6 |
> First, is related to the title which is: |
7 |
> |
8 |
> Cron <root@mylaptop> test -x /usr/sbin/run-crons && |
9 |
> /usr/sbin/run-crons |
10 |
> |
11 |
> I am not sure what this "test -x" part represents? |
12 |
|
13 |
It means: If /usr/sbin/run-crons is executable, execute it. It could also |
14 |
be written as |
15 |
[ -x /usr/sbin/run-crons ] && /usr/sbin/run-crons |
16 |
or |
17 |
f=/usr/sbin/run-crons |
18 |
if [ -x $f ] |
19 |
then |
20 |
$f |
21 |
fi |
22 |
|
23 |
|
24 |
No idea about your other question, though. |
25 |
|
26 |
Wonko |