Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unix Cron Job

Status
Not open for further replies.

yy2

MIS
May 3, 2006
10
0
0
US
Hi,

I am facing some problem while executing the process thru cron. My execution scripts (KORN shell) will be something as below:

echo U$(tput kf9)$(tput kf9)|/prog/bin/prog1.exe M A 1>/prog/log/cron.log

In my cron.log, I can see that the 1st input parameters is not passing in to the program correctly therefore it is prompting invalid entry. However, when I execute the program manually thru command line,it is working fine.

Anyone have any clue what cause the problem?


/prog/log/cron.log details:
---------------------------
ENTRY TO CREATE THE IMP AND LOG ACCOUNTS "ADD" FILE, ENTER 'A' O
R TO CREATE THE IMP AND LOG ACCOUNTS "UPDATE" FILE, ENTER 'U' OR TO PREPAR
E THE "ADD" OR "UPDATE" FILE FOR FTP TRANSMISSION, ENTER 'S' ENTER YOUR CHOICE..
. (A/U/S) prog.exe/01 A. A. A. DATE 26/06/2006 VERSION 6.7.00 CREATE/SAVE IMP
/LOG FILE FOR IBS F7 CANCEL / F9 ACCEPT ^HU^HH^H Invalid entry
Invalid entry Invalid entry Invali
d entry Invalid entry

 
Is the TERM variable defined and exported in your cron job ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Yes, both the TERM and TERMCAP are exported in my scripts.

We are using TERM=wy150.

Is there any other setting that has been missed out?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top