HDI script fixed (non-interactive) input in a command-line gui program?
I want to create a simple script that initiates a simple gui-based program (think ncurses-style, text-based graphics in a shell) in Debian.  I only access the server through SSH, so I can't do standard macros or anything.

The input is always the same: I just need it to start the program, then within the context of the program, send an "enter" keystroke, an "R" keystroke, and an "F7" keystroke.  

I've been working on this for a while now, and I can't seem to figure anything out.  Is there any way to do this within a bash script?

Thank you and have a good day
HDI script fixed (non-interactive) input in a command-line gui program?
===

I want to create a simple script that initiates a simple gui-based program (think ncurses-style, text-based graphics in a shell) in Debian.  I only access the server through SSH, so I can't do standard macros or anything.

The input is always the same: I just need it to start the program, then within the context of the program, send an "enter" keystroke, an "R" keystroke, and an "F7" keystroke.  

I've been working on this for a while now, and I can't seem to figure anything out.  Is there any way to do this within a bash script?

Thank you and have a good day