Help with a small unix script

Atvar

Senior member
Jan 8, 2002
879
0
0
I'll try to explain this as best I can. Its fairly simple (I think) but I am not sure how to go about doing this.

I am writing a script that launches another program/daemon at the command line. The problem is that the program it launches waits for user input. It basically overtakes my script and I can't think of anyway to pass the answers to the program in the script. This is something that would have to be done quite often and the input is always going to be the same. Automating this would be a huge help.

If anyone has any ideas please let me know. Thanks
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Input on the command line and use the $#'s as input, or something. Maybe?

Like: script.sh input1 input2 input3