A crontab job not working

Hello,
This is my first posting in Linux world.

I have SLES 11.

I've created a file 'packdisk-scandisk.txt' file under /var/opt/Teradata/bteqdba.

The content of the file is,

 cat /var/opt/Teradata/bteqdba/packdisk-scandisk.txt
 output over /var/opt/Teradata/bteqdba/TAREAS_DBA.log
 enable scriptmode
 scope vproc all
 showspace
 packdisk fsp=10
 y
 showspace
 scandisk
 yes
 quit
 

I prepared a crontab file as 'su' under etc
The content of the file is

 SHELL=/bin/sh
 PATH=/usr/bin:/usr/sbin:/sbin:/bin:/usr/lib/news/bin
 MAILTO=root
 -*15 * * * *    root test -x /usr/lib/cron/run-crons && /usr/lib/cron/run-crons >/dev/null 2>&1
  
 30  11 * * fri /opt/Teradata/tdat/pde/14.00.04.03/bin/cnsrun -utility ferret 
 
  1. I created packdisk-scandisk.txt as 'su' because it won't allow me to write. Can the cron job I created start the packdisk-scandisk.txt file?

Thank you,

Not working what?

  • the script not starting at all? or
  • the script not working as expected?

Refer this post. Script runs good manually but failing via crontab