Script runs in shell but not cron

view story

http://www.unix.com – We run some menu driven software that has the ability to batch menu paths and generate reports quickly. Normally you run a batch like: Code: $ BATCH BATCHNAME The batch program then prompts you for the date you want the report run for. I got some help from some folks on IRC to do the following: Code: BATCH BATCHNAME $(date +%y%d%m) This allowed me to run the batch using the current date without having to enter the date at the prompt (it auto-fills the prompt in effect). It runs fine from the $ (ksh) and it runs fine from a script (sh something). However, when I try to run it with c (HowTos)