Let me explain a bit of the backgroud before I post my question:
Inside the informix 4gl program
OPTIONS INPUT WRAP
OPTIONS INSERT KEY F2
OPTIONS NEXT KEY F3
OPTIONS PREVIOUS KEY F4
OPTIONS DELETE KEY F8
OPTIONS ACCEPT KEY F9
.....
....
Function input_scr
display form
input ....
on key (ACCEPT)
call generate_rpt()
End Function
Problem:
How to get the value of "on key (ACCEPT)which is equivalent to F9 key"?
The reason why I need the F9 key value is because I am actually need this value to be pass in as an argument in my unix script which is calling this program?
My unix script (korn shell) will be something as below:
Assuming my input will be date1 and date2 and finally need to press F9 to process:
date1 = 31/05/2006
date2 = 1/06/2006
Process path/process = /proj/prog.exe
ksh -c "echo 31/05/20061/06/2006<F9 ctrl-key> |/proj/prog.exe " << ^M
!
I will be glad if anyone can help me on this issue.
Thanks in advacne.
Inside the informix 4gl program
OPTIONS INPUT WRAP
OPTIONS INSERT KEY F2
OPTIONS NEXT KEY F3
OPTIONS PREVIOUS KEY F4
OPTIONS DELETE KEY F8
OPTIONS ACCEPT KEY F9
.....
....
Function input_scr
display form
input ....
on key (ACCEPT)
call generate_rpt()
End Function
Problem:
How to get the value of "on key (ACCEPT)which is equivalent to F9 key"?
The reason why I need the F9 key value is because I am actually need this value to be pass in as an argument in my unix script which is calling this program?
My unix script (korn shell) will be something as below:
Assuming my input will be date1 and date2 and finally need to press F9 to process:
date1 = 31/05/2006
date2 = 1/06/2006
Process path/process = /proj/prog.exe
ksh -c "echo 31/05/20061/06/2006<F9 ctrl-key> |/proj/prog.exe " << ^M
!
I will be glad if anyone can help me on this issue.
Thanks in advacne.