File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 22# info: change cron job
33# options: USER JOB MIN HOUR DAY MONTH WDAY COMMAND
44#
5- # example: v-change-cron-job admin 7 * * * * * * /usr/bin/uptime
5+ # example: v-change-cron-job admin 7 * * * * * /usr/bin/uptime
66#
77# This function is used for changing existing job. It fully replace job
88# parameters with new one but with same id.
@@ -54,7 +54,7 @@ time=$(echo "$time_n_date" | cut -f 1 -d \ )
5454date=$( echo " $time_n_date " | cut -f 2 -d \ )
5555
5656# Concatenating cron string
57- command=$( echo $command | sed -e " s/'/%quote%/g" )
57+ command=$( echo " $command " | sed -e " s/'/%quote%/g" )
5858str=" JOB='$job ' MIN='$min ' HOUR='$hour ' DAY='$day ' MONTH='$month ' WDAY='$wday '"
5959str=" $str CMD='$command ' SUSPENDED='no' TIME='$time ' DATE='$date '"
6060
You can’t perform that action at this time.
0 commit comments