Hello Experts,
I have a requirement to pass some parameters to Linux cron tab.
For ex: My default cron entry looks like this as below:
-------------------------------
-------------------------------
However I want to pass ¨system hostname¨ as a parameter as below:
-------------------------------
-------------------------------
Whenever new cron entry appears, I have to modify it manually, but it is not feasible for me.
Could you guide me how can I achieve this using Shell script?
Regards,
Mahesh
I have a requirement to pass some parameters to Linux cron tab.
For ex: My default cron entry looks like this as below:
-------------------------------
Code:
55 10 * * -- /usr/sap/BDD/BO/BOIPS/dataservices/log/XXXX_JOB1/Schedules/Finance_DS/DI__6d709d6a_1234_46b5_8268_3bce90c38a30_74_r_0_w_n_10_55.sh
However I want to pass ¨system hostname¨ as a parameter as below:
-------------------------------
Code:
55 10 * * 0 Rcmd +i HOSTNAME -- /usr/sap/BDD/BO/BOIPS/dataservices/log/XXXX_JOB1/Schedules/Finance_DS/DI__6d709d6a_1234_46b5_8268_3bce90c38a30_74_r_0_w_n_10_55.sh
Whenever new cron entry appears, I have to modify it manually, but it is not feasible for me.
Could you guide me how can I achieve this using Shell script?
Regards,
Mahesh