Aloha,
un collega mi chied aiuto per un paro di shell scripts:
1) Do you know how i might (in a mindless kind of way) pass typed
arguments through to an invoked application from within a bash shell
script? I used to be able to do this fine using tsch, but have now forgotten.
For example, i'd like to be able to do something like :
#!/bin/sh
application1
< input_file
< map
< yes
< no
< end
application2
< reply to prompts
<
end_of_shell_script
... that kind of thing.
2) Related to this, would you know how i could pass two arguments to
the linux command "passwd" using one command line? e.g. something like:
echo "passwd1 \n" "passwd1 \n" | passwd username
google searches only throw up how to pass arguments through to a shell
script ...
Io di idee nun ne ho... voi?
Fede
|