1752781 Members
6545 Online
108789 Solutions
New Discussion юеВ

"." in crontab

 
SOLVED
Go to solution
Coolmar
Esteemed Contributor

"." in crontab

We have a crontab with the following syntax for one of the entries:

00 05 * * 1-6 . ${HOME}/scripts/script.sh

This script works fine...however, what is the "." for?
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor
Solution

Re: "." in crontab

Hi:

The dot-space-script notation means to source or read a script to obtain environmental variables for propagation into the current shell. I this case, the script obviously contains executable statements. You can remove the leading dot character. In this context it's not doing anything.

Regards!

...JRF...
Coolmar
Esteemed Contributor

Re: "." in crontab

So basically the same idea as if you would be running say the .profile from the cron?
Patrick Wallek
Honored Contributor

Re: "." in crontab

Yes, exactly.
Coolmar
Esteemed Contributor

Re: "." in crontab

Thanks guys.
Yogeeraj_1
Honored Contributor

Re: "." in crontab

hi,

as JRF mentioned, the idea might have been so but in this context it does not work as such.

So, can you just remove it from there to avoid any ambiguities in the future.


kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)