Bu eski olsa bile, bu cevabın başkalarına yardımcı olabileceğini düşünüyorum.
İşte crontab'ımın bir örnek satırı:
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).
Komutların bir listesini ve komutları ayırmak için noktalı virgül (;) eklemek için() kullanın.
Bunun yardımcı olabileceğini umuyorum ...