Hans
2024-09-06 10:30:01 UTC
Dear list,
I am stuck with a little problem and know no one, whom I can ask. So I allow
me to ask here.
I have several directories, and in each directory there is a shell script,
which MUST be started within and from its path.
Now I want to edit a "master-shell-script", which I can start from anywhere
and which shall start each single shellscripts simultaniously, but within its
path.
The structure looks like this:
/directory-one/application_1/my-shell-1.sh
/directory-two/application_2/my-shell-2.sh
/directory-three/application_3/my-shell-3.sh
Of course, I could mae my master-shell-script so, that I first go into the
first one, execute, then cd to the second one, execute and last cd to the
third one, execute, but I suppose, there is an easier way.
Or does my idea not work at all?
Thanks fo a short advice.
Best
Hans
I am stuck with a little problem and know no one, whom I can ask. So I allow
me to ask here.
I have several directories, and in each directory there is a shell script,
which MUST be started within and from its path.
Now I want to edit a "master-shell-script", which I can start from anywhere
and which shall start each single shellscripts simultaniously, but within its
path.
The structure looks like this:
/directory-one/application_1/my-shell-1.sh
/directory-two/application_2/my-shell-2.sh
/directory-three/application_3/my-shell-3.sh
Of course, I could mae my master-shell-script so, that I first go into the
first one, execute, then cd to the second one, execute and last cd to the
third one, execute, but I suppose, there is an easier way.
Or does my idea not work at all?
Thanks fo a short advice.
Best
Hans