in reply to Emulate a terminal to SSH

One other thing to keep in mind is that jobs run via cron do not have the full environment set up for them. You have to explicitly define things in the %ENV hash for your script to use them; for example ORACLE variables.