Shell script inside shell script
I have two shell scripts (#!/bin/sh), how it can integrate its? for example Shell script A need to be fire up/ call the Shell script B sometime. How it can do?
I tried, inside Shell script A, I added the path: /etc/shell_scriptB But it can't fire up/ call the shell script B! Why? How it can do? Thanks |
That should work so long as /etc/shell_scriptB exists and is executable for the user running the first script.
Without seeing the scripts and their permissions it is difficult to know what else it could be. |
this is ok now! but i want to know the solution.
the shell script A can be call shell script B, but the shell script B need to do many task so it run very slow; then the Shell script A also run slowly by Shell script B. How the ss A can not be affected by ss B? Thanks |
It's not clear from your post exactly what you want to do, but to let scriptB run without blocking scriptA, fire it off with an & after it
Code:
/etc/scriptB & |
Quote:
|
All times are GMT -5. The time now is 10:43 AM. |