Re: Why following ksh script not works in crontab?
Posted in 1998
Ruiming Chen (rctwo@erols.com) wrote:
: This is a multi-part message in MIME format.
: --------------4D5164B43D5D4EE60DD563E6
: Content-Type: text/plain; charset=us-ascii
: Content-Transfer-Encoding: 7bit
: The following ksh script works well in command line.
: But not work in crontab, why?
: -----------------------------------------------------------------------
: #!/bin/ksh
: # Informix back up logical log and will create a file logical.log
: ontape -a << EOF
: ^M
: y^M
: EOF
In what directory is "ontape" located? The PATH for cron is minimalist:
/usr/bin:/usr/sbin. Either provide full pathnames or your own PATH.
--
Dan Mercer
Reply To: damercer@mmm.com
Opinions expressed herein are my own and may not represent those of my employer.