I've been searching w/o luck
This script:
#!/bin/ksh
cd /dir
DATE="/bin/date"
YEAR=$($DATE +%EY)
MNTH=$($DATE +%m)
DAY=$($DATE +%d)
/usr/bin/echo "$YEAR$MNTH$DAY" > FILE
runs OK except when run in cron (at 10:55 pm)
It fails w/
sh: TT_DB: cannot execute
TT_DB is a directory, why is the shell expanding the script
variable like that? I have used set -o v w/o any luck.....
Thanks
-John
This script:
#!/bin/ksh
cd /dir
DATE="/bin/date"
YEAR=$($DATE +%EY)
MNTH=$($DATE +%m)
DAY=$($DATE +%d)
/usr/bin/echo "$YEAR$MNTH$DAY" > FILE
runs OK except when run in cron (at 10:55 pm)
It fails w/
sh: TT_DB: cannot execute
TT_DB is a directory, why is the shell expanding the script
variable like that? I have used set -o v w/o any luck.....
Thanks
-John