Yes you are. cron is run with a different environment than exists
in your shell. You must never assume that any command is in the
path nor can you assume that any environment variable that exists
for you will exist when the cron command is run.

--
Fletcher Glenn
to reply remove NOSPAM from my reply address

"Jorge" <obicharamia.bellsouth.net> wrote in message
news:3EFB5C6F.51282DE0mia.bellsouth.net...
> The following script runs some basic commands. The problem I am having
> is that I can execute this file manually and it runs fine. But when
> trying to execute it with the crontab it runs only certain things on the
> script. am i missing a basic step? Any help would be greatly apreciated.
>
> Thanks
> Jorge
>
>
>
> chmod a+r /usr/nts/cback/CBT*
> chmod a+w /usr/nts/cback/CBT*
> chmod a+x /usr/nts/cback/CBT*
> ls /usr/nts/cback > list.txt
> sed '/./=' list.txt | sed '/./N; s/\n/ /' >> list1.txt
> count=`sed -n '$=' list1.txt`
> if [ "$count" -ge 1 ]
> then
> #************************************************* ******
> cp jbjtmp.txt jbjruncb.txt
> #************************************************* *******
> exec < list.txt
> while read var1
> do
> cp /usr/nts/cback/$var1 /usr/nts/cbacklog
> done
> #************************************************* ******
> exec < list.txt
> while read var1
> do
> append /usr/nts/cback/$var1 jbjruncb.txt
> done
> #************************************************* ******
> awk -F"," '{print $1,$2,$3}' jbjruncb.txt | sort -u >> jbjruncb2.txt #
> extracts
> desired columbs from file
> sed 's/$/|U/' jbjruncb2.txt > jbjruncb3.txt
> sed 's/ /|/g' jbjruncb3.txt > callback.txt
> #************************************************* *******
> load_cback.cmd
>
> /u/VrsPrgrm/load/aruba/cback
> #************************************************* *******
> #$CMD/initupdate.cmd 1
> sed '/./=' list.txt | sed '/./N; s/\n/ /' >> list1.txt
> count=`sed -n '$=' list1.txt`
> if [ "$count" -ge 2 ]
> then
> $CMD/initupdate.cmd 1"
> fi
> #************************************************* *******
> exec < list.txt
> while read var1
> do
> rm /usr/nts/cback/$var1
> done
> #************************************************* ******
> rm list.txt jbjrun* callback.txt list1.txt
> fi
>
>
>
>