Quote:
Originally Posted by xskycamefalling
sorry what do you mean? could you elaborate?
|
One shell script has number of ways to communicate with another.
1. Pass argument on the command line:
Code:
shell_script_name arg arg arg
(The second shell script receives these arguments as $1, $2, etc..)
2. Invoke one shell script within another like this:
Code:
. script-name (see the dot at the left?)
Invoking a script like this causes the declared variables from the invoked script to be inherited by the parent script.
3. Piping:
Code:
script_1 | script_2 | script_3
script_1 prints some information, which is piped to script_2, etc..
This doesn't exhaust the possibilities, but it should give you some ideas.