All Gurus

I am just 1 year old in Linux handling and almost novice in shell scripting & crontab scheduling.

I am trying to schedule some python script (standard python script come with HANA cdpy directory) using CRONTAB I have created shell script and that is running fine stand-alone.

But when I try to schedule this via CRONTAB then it is running Actually it ignores that command and run everything else.

Would you please review?

Shell Script:


r3eomdbp1020:/usr/sap/KHA/SYS/global/sapcontrol/snapshots> cat fullDUMP.sh
#!/bin/bash
#following command will create a full system info dump in /usr/sap/KHA/SYS/global/sapcontrol/snapshots
#now=$(date +"%m_%d_%Y")
/usr/sap/KHA/HDB01/exe/Python/bin/python /usr/sap/KHA/HDB01/exe/python_support/fullSystemInfoDump.py
#>> /bkup/FILESYS/FSID_$now.log
#following command will move above created full system info dump to /bkup/FILESYS/
#echo
#mv /usr/sap/KHA/SYS/global/sapcontrol/snapshots/fullsysteminfodump* /bkup/FILESYS/

CRONTAB entry:

r3eomdbp1020:/usr/sap/KHA/SYS/global/sapcontrol/snapshots> crontab -l
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.XXXXElLiiy installed on Wed Jun 29 16:16:32 2016)
# (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $)
#define env variable PATH for CRONTAB
PATH=/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib64/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/usr/sap/KHA/HDB01/r3eomdbp1020:/usr/sap/KHA/HDB01:/usr/sap/KHA/HDB01/exe:/usr/sap/KHA/HDB01/exe/Python/bin:/usr/sap/KHA/HDB01/exe/dat_bin_dir:.:/usr/sap/KHA/home:/usr/sap/KHA/home/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib64/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin
#actual CRONTAB command
18 * * * * /usr/sap/KHA/SYS/global/sapcontrol/snapshots/fullDUMP.sh

Could you please guide me on this?

Regards
Partha