c - Shell script to test command line program -


i have program written in c operates similar below output.

welcome program.  hit 1 task 1.  hit 2 task 2.  hit q quit. 

what need bash shell script start program, enters 1, 2 , q program can test functionality in 1 command.

i assume similar following

#!/bin/bash  ./start kernel  1 2 q 

typically use expect testing these types of applications.


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -