M
Magnus Jonneryd
Hi, I'm planning on writing a program that interactively is fed input via a
shell (bash). I also want to be able to write a shell script that executes
various commands related to my program. In short i want to provide input to
a program using some (or all) of the functionality found in bash.
It's mainly the format of the file I'm having trouble with. I wanted to be
able to write something like this:
#!/bin/bash
for x in xs
do
myprog.method(x)
done
How do i call myprog from a bash script (myprog is executing and reacting to
the input)?
Hopefully I've been able to convey my message.
Thanks in advance!
shell (bash). I also want to be able to write a shell script that executes
various commands related to my program. In short i want to provide input to
a program using some (or all) of the functionality found in bash.
It's mainly the format of the file I'm having trouble with. I wanted to be
able to write something like this:
#!/bin/bash
for x in xs
do
myprog.method(x)
done
How do i call myprog from a bash script (myprog is executing and reacting to
the input)?
Hopefully I've been able to convey my message.
Thanks in advance!