If we want to ensure that we are always running the most recent version of a script, then we can use curl as below;
curl -s http://192.168.254.198/stuff/scripts/myscript.sh | bash -s arg1 arg2 arg3
where http://192.168.254.198/stuff/scripts/myscript.sh is the location of the script, reachable from the target machine and arg1, arg2, arg3 are optional parameters that would be applicable if the script was run from the command line as ./myscript.sh arg1 arg2 arg3
No comments:
Post a Comment
Note: only a member of this blog may post a comment.