Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login




Remember Me
Forgot Password?
Join Us!

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.
Jobs from Indeed

Link To This Forum!

Partner Button
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

yy2 (MIS) (OP)
8 May 06 3:50
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 To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close