Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
Bash Scripting: Passing paramters to a called function
I want to run a language sml and pass some "pre-determined" commands everytime. Now in bash I type sml to enter into sml terminal and now I use this terminal. How do I use my bash script to pass some "pre-determined" commnds to this terminal.
- use "abc.sml";
> val it = 2.3 real.
- Join Date
- Oct 2001
- Täby, Sweden
Usually, that depends on the program itself. For example, Perl uses the -e switch to receive commands from the command line.
If sml supports reading commands from stdin correctly, you can probably do something like this:
echo "some commands" | sml