Hi everybody,
At work I need to run a few commands, with different parameters from time to time on a remote server using SSH.
I'd like to automate these action using <insert best solution here>
Options would be Automator, Applescript, Python, Perl or Ruby
I don't really know any of these languages, but I do have a good programming background (used with shell, done C/C++ and turbopascal long ago, Actionscript 2, php, etc)
I'd like to script to ask for the few parameters needed, and then running the scripts in order. It is important that the script can wait for the previous call to finish before it continue...
an example would be:
- ask for the target server
- ask for a campaign name
- ask for a version number
- ssh to a server "x"
- run a few scripts on server "x" using provided params
- ssh *from* server "x" to server "y"
- call a script
- cd to a certain folder
- delete a folder
- unzip a file and move it to another location afterward
- call a script
Might seem a "lot" but it's actually not much
If anyone can help me in any way, that'd be really appreciated;
Thanks to you all
O.
At work I need to run a few commands, with different parameters from time to time on a remote server using SSH.
I'd like to automate these action using <insert best solution here>
Options would be Automator, Applescript, Python, Perl or Ruby
I don't really know any of these languages, but I do have a good programming background (used with shell, done C/C++ and turbopascal long ago, Actionscript 2, php, etc)
I'd like to script to ask for the few parameters needed, and then running the scripts in order. It is important that the script can wait for the previous call to finish before it continue...
an example would be:
- ask for the target server
- ask for a campaign name
- ask for a version number
- ssh to a server "x"
- run a few scripts on server "x" using provided params
- ssh *from* server "x" to server "y"
- call a script
- cd to a certain folder
- delete a folder
- unzip a file and move it to another location afterward
- call a script
Might seem a "lot" but it's actually not much
If anyone can help me in any way, that'd be really appreciated;
Thanks to you all
O.