If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > Unix Cron Job

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-26-06, 05:53
ycy3 ycy3 is offline
Registered User
 
Join Date: May 2006
Posts: 6
Unix Cron Job

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.

The term and termcap was exported correctly in my script.
The /prog/bin/prog1.exe was written in INFORMIX-4GL.

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
Reply With Quote
  #2 (permalink)  
Old 07-06-06, 15:14
LKBrwn_DBA LKBrwn_DBA is offline
Registered User
 
Join Date: Jun 2003
Location: West Palm Beach, FL
Posts: 2,456
Cool


You cannot execute interactive script through "cron".
__________________
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On