akelabanda
Programmer
Hi
I am trying to simulate keystrokes in my program
without actually typing a character and "\n".
=============================
#!/usr/bin/perl
@test = `pkgadd -d /export/home/raj/BOLTpget.pkg`;
=============================
This will display
=============================
The following packages are available:
1 BOLTpget pkg-get
(all) 1.9.5
Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:
=============================
Now I want to have a "q" and "\n" input automatically
such that the program does not wait for manual input.
Ideally I want to read this screen into a list (@output)
for further processing.
Please help.
Regards
Rajeev
I am trying to simulate keystrokes in my program
without actually typing a character and "\n".
=============================
#!/usr/bin/perl
@test = `pkgadd -d /export/home/raj/BOLTpget.pkg`;
=============================
This will display
=============================
The following packages are available:
1 BOLTpget pkg-get
(all) 1.9.5
Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:
=============================
Now I want to have a "q" and "\n" input automatically
such that the program does not wait for manual input.
Ideally I want to read this screen into a list (@output)
for further processing.
Please help.
Regards
Rajeev