bash - Appropriate way to read inputs of a program called by a script -
i have 2 files, commands.txt , mk.sh:
#!/bin/bash command1 command2 ./program < commands.txt
where commands.txt contains list of inputs of program, example:
#c1 3 3 filename
this solution it's not @ all, because programme ends eof exception, , i'm sure that's improve way this. so, what's suggestions? give thanks :)
making explicit solution given anubhava in comments:
#!/bin/bash ./program << eof #c1 3 3 filename eof
bash shell sh
No comments:
Post a Comment