Help with basic shell script. /bin/sh: source: not found

后端 未结 2 905
抹茶落季
抹茶落季 2020-12-29 04:09

My cron :

45 10 * * * source /home/ThinkCode/Test/hello.sh

hello.sh :

#!/bin/bash
echo \"helloworld\"

Th

2条回答
  •  Happy的楠姐
    2020-12-29 04:55

    Real sh doesn't have source, only .. Either change the shell in cron to bash, or use . instead.

提交回复
热议问题