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 > Database Server Software > Informix > How to handle "tcflush"

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-08-06, 04:11
ycy3 ycy3 is offline
Registered User
 
Join Date: May 2006
Posts: 6
How to handle "tcflush"

Hi,

I have a 4GL program which expecting 2 input screens.

The 1st screen is expecting:
1. date1
2. date2

The 2nd screen is expecting:
1. input array of a/c no and press F8 to process
or
2. Leave the entry blank and press F8 to process.

I have a unix scripts which calling this 4GL program by passing all the stdin as below using echo command:

ksh -c "echo 31/08/2005 31/08/2005^M^M$(tput kf8)|/proj/prog.exe" <<!
^M
!

However, the problem occured while I execute this command and it stopped at the 2nd screen whereby the 4GL program
was calling the tcflush function before the input array.

I have tried commented the calling function of TCIFLUSH in my 4GL program, and my script is working totally fine. However, my boss has given the instruction not to modify any 4GL program. So, anyone has any clue to resolve
this?

Is there anywhere to include a "pause" in the ksh command before the 2nd parameters being pass to the 4gl program from unix script?

e.g

ksh -c "echo 31/08/2005 31/08/2005^M^M <anywhere to include a Pause in between here > $(tput kf8)|/proj/prog.exe" <<!
^M
!
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