Skip to main content
edited tags
Link
Gilles 'SO- stop being evil'
  • 866.1k
  • 205
  • 1.8k
  • 2.3k
added 54 characters in body
Source Link
Nidal
  • 9.1k
  • 11
  • 59
  • 74

I have 4 shell scripts and I want to run them in a sequencing way:

script1 -> script2 -> script3 ->script4

in a local machine can I ensure this by make the scripts executable and creating a new shell script like this:

#!/bin/bash
. script1.sh
. script2.sh
. script3.sh
. script4.sh

and if one of the scripts is in a remote machine, (for example script2.sh) how can I:

  1. run the shell script remotely
  2. ensure the sequencing.

Note : all of the scripts have an infinite loop.

I have 4 shell scripts and I want to run them in a sequencing way:

script1 -> script2 -> script3 ->script4

in a local machine can I ensure this by make the scripts executable and creating a new shell script like this:

#!/bin/bash
. script1.sh
. script2.sh
. script3.sh
. script4.sh

and if one of the scripts is in a remote machine, (for example script2.sh) how can I:

  1. run the shell script remotely
  2. ensure the sequencing.

I have 4 shell scripts and I want to run them in a sequencing way:

script1 -> script2 -> script3 ->script4

in a local machine can I ensure this by make the scripts executable and creating a new shell script like this:

#!/bin/bash
. script1.sh
. script2.sh
. script3.sh
. script4.sh

and if one of the scripts is in a remote machine, (for example script2.sh) how can I:

  1. run the shell script remotely
  2. ensure the sequencing.

Note : all of the scripts have an infinite loop.

Source Link
Nidal
  • 9.1k
  • 11
  • 59
  • 74

run shell scripts in a sequencing way?

I have 4 shell scripts and I want to run them in a sequencing way:

script1 -> script2 -> script3 ->script4

in a local machine can I ensure this by make the scripts executable and creating a new shell script like this:

#!/bin/bash
. script1.sh
. script2.sh
. script3.sh
. script4.sh

and if one of the scripts is in a remote machine, (for example script2.sh) how can I:

  1. run the shell script remotely
  2. ensure the sequencing.