crontab commands are executed without environment variables. The error, your script will produce in crontab would be helpful, f.e. redirect the stderr into your output file (2>&1). My first guess is, you are missing is the NAS_DB variable, it is not set when executed by crontab, but set when executed in your shell, because it will bet set during the login as nasadmin
Hello I've crontabed a script containing this line : /nas/bin/server_cifs server_2 -option audit,full|grep -e AUDIT -e DMZ -e uid>>/home/nasadmin/outputfilecifs.grep  In running ./myscript, it works When crontab launch the script, I get this in the outputfilecifs.grep file : SecuredCLISecurityFile.xml SecuredCLIXMLEncrypted.key capture.sh clartool_nas1-ns40-s1p1-intranet.rpt collect_nas.ksh config.rpt copie.ksh cpgInput.rpt listML lists-tar-nas1-ns40-s1p1-intranet-1371817389-1.tar.gz lists-tar-nas1-ns40-s1p1-intranet-1372062546-1.tar.gz lists-tar-nas1-ns40-s1p1-intranet-1372064136-1.tar.gz lists-tar-nas1-ns40-s1p1-intranet-1372064793-1.tar.gz lists-tar-nas1-ns40-s1p1-intranet-1372066683-1.tar.gz lists-tar-nas1-ns40-s1p1-intranet-1372067655-1.tar.gz lists-tar-nas1-ns40-s1p1-intranet-1372346278-1.tar.gz lists-tar-nas1-ns40-s1p1-intranet-1372347611-1.tar.gz lists-tar-nas1-ns40-s1p1-intranet-1372348732-1.tar.gz nas_cspoller.tar.gz nas_fs nbsnas_cspoller.tar.gz outputfilecifs.grep outputfilecifs.sh outputfilecifs.sh.log paramS1.txt pre-upgrade.rpt precksums.rpt predffs.rpt preexp.rpt premtfs.rpt preparams.server_2.rpt presite.rpt presitecksum.rpt preupgrd.rpt readme.txt server_2.pre-sysconfig.rpt tmp_sfdisk trace.rpt upgrd-ckv11-10.bin upgrd-ckv11-10.tar user.list usrm.groups usrm.passwd  I've compared the environnement and only the : SHLVL ist at 2 in user crontab env and at 1 in user shell env and these parm are added in user shell env What is missing to run weel this script in crontab ? Thanks
crontab on celerra output script failed