これが古くても、私はこの答えが他人を助けるかもしれないと思います。
ここで私のcrontabのサンプル行:
0 3 * * 1,2,4,5,6 (. /home/oracle/.profile; export ORACLE_SID=myDB;. myscript.ksh parm1 parm2; ) 1>/dev/null 2>&1
Which:
Execute the profile of my user (oracle), so I am sure I have the good envs:. /home/oracle/.profile
Set a local env value: export ORACLE_SID=myDB
Executes the script with its params:. myscript.ksh parm1 parm2 (nota: the dot because the script does not have the x flag)
Does not send email: 1>/dev/null 2>&1 (My script sends the needed emails with formatting).
コマンドのリストを囲むには()を使用し、コマンドを区切るにはセミコロン(;)を使用します。
これが助けることを望む...