Sometimes you will need to execute commands on a remote server routinely but you don't want them to be scheduled. This material will guide you in doing it.
prepared_bash_script.sh
- a sample bash/shell script that is in the local machine.
In the example it simply echos the first argument value when the script was executed.
Hello world
executable.sh
- a sample bash/shell script that calls for a canned/prepared script
In the example it simply executes the prepared_bash_script.sh
by passing the argument Hello world
. The prepared script will be executed on the server host
and as user user
.