Gentoo Archives: gentoo-user

From: Alex Schuster <wonko@×××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Receiving mail from crontab
Date: Tue, 04 May 2010 22:40:57
Message-Id: 201005050040.20745.wonko@wonkology.org
In Reply to: [gentoo-user] Receiving mail from crontab by Mick
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

Replies

Subject Author
Re: [gentoo-user] Receiving mail from crontab Mick <michaelkintzios@×××××.com>