I'm stumped.
I'm using Linux. I want to have a simple Perl script which will accept keyboard input and send commands to an image viewer running in another window.
Here are some details:
The viewer is called viewfax. It is run from the command line as such:
viewfax /home/me/fax.tif
It pops up into its own window, and accepts keyboard commands such as these:
Z - Zoom in
z - Zoom out
u - flip page upside-down
Pg-Up - previous page in tif
Pg-Dn - next page in tif
q - quit
I have a script running where I want to control viewfax from within it. Thus I've been trying to use a named pipe and a fork to send commands to the process. The viewfax window should remain open, continuously accepting commands, until the 'q' command is sent which of course exits viewfax.
Thanks very much for any help.
Dale
I'm using Linux. I want to have a simple Perl script which will accept keyboard input and send commands to an image viewer running in another window.
Here are some details:
The viewer is called viewfax. It is run from the command line as such:
viewfax /home/me/fax.tif
It pops up into its own window, and accepts keyboard commands such as these:
Z - Zoom in
z - Zoom out
u - flip page upside-down
Pg-Up - previous page in tif
Pg-Dn - next page in tif
q - quit
I have a script running where I want to control viewfax from within it. Thus I've been trying to use a named pipe and a fork to send commands to the process. The viewfax window should remain open, continuously accepting commands, until the 'q' command is sent which of course exits viewfax.
Thanks very much for any help.
Dale