the env in cron job
The environment in cron job are different with the normal workarea.
normally, in my default enviroment, there are 71 env variants, but in the cron job env, there are only five or six env variants.
First the default shell are different, the normal env is tcsh, the cronjob is /usr/bin/sh.
Second ,under normal env, the $CCM_DATETIME_FMT is "%Y-%m-%d %T", under cron job is empty.
We had to set env variants for the cron job.
In the command line of cron job, it is difficult to set the env variants.
so we had to write the env variant to a file "dailybuild", then execute it.
浙公网安备 33010602011771号