Interactive Scripts versus One-liners
I have a program for which I'm trying to write an installer. I'm up to the part where the program's files are all in the correct place and the program is executed by the command 'mp' in the terminal. The first time I run the program I need to run it with the first argument being the serial number. The program displays registration information and asks the user to hit return, then type yes and hit return again.
For the purpose of coding the graphical installer, I'd like to execute this action all as one line. I tried:
mp SERIAL# ; ; yes
but this did not work. Is there another way to do what I'm trying to do?