geppetto1
February 11th, 2011, 10:08 PM
I'm trying to understand a crontab entry for sysstat. The entry is from /etc/cron.d/sysstat:
*/10 * * * * root command -v debian-sa1 > /dev/null && debian-sa1 1 1
What I know:
*/10 * * * * - execute command every 10 minutes
&& - we're executing multiple commands consecutively
debian-sa1 1 1 - execute 'debian-sa1 1 1' executes 'sa1' and passes '1 1' to sa1 as options.
also, from the debian-sa1 file - Debian sa1 helper which is run from cron.d job, not to needlessly fill logs (see Bug#499461). I'm guessing that the bug is responsible for the existence of 'debian-sa1'
What I don't understand:
root command -v debian-sa1 > /dev/null
...could be that ' debian-sa1 > /dev/null' is the first command, but then I don't understand 'root command -v'
...more likely that 'root command -v debian-sa1 > /dev/null' is the first command, but then I still don't understand 'root command -v'
maybe what I'm asking is - what is the purpose of 'root command -v' ?
My knowledge is both dated (SVR4) and faded so any help would be appreciated. Hopefully I picked the proper forum for a question of this type.
Thank you and regards.
*/10 * * * * root command -v debian-sa1 > /dev/null && debian-sa1 1 1
What I know:
*/10 * * * * - execute command every 10 minutes
&& - we're executing multiple commands consecutively
debian-sa1 1 1 - execute 'debian-sa1 1 1' executes 'sa1' and passes '1 1' to sa1 as options.
also, from the debian-sa1 file - Debian sa1 helper which is run from cron.d job, not to needlessly fill logs (see Bug#499461). I'm guessing that the bug is responsible for the existence of 'debian-sa1'
What I don't understand:
root command -v debian-sa1 > /dev/null
...could be that ' debian-sa1 > /dev/null' is the first command, but then I don't understand 'root command -v'
...more likely that 'root command -v debian-sa1 > /dev/null' is the first command, but then I still don't understand 'root command -v'
maybe what I'm asking is - what is the purpose of 'root command -v' ?
My knowledge is both dated (SVR4) and faded so any help would be appreciated. Hopefully I picked the proper forum for a question of this type.
Thank you and regards.