for i in $(seq $START $STEP $END); do echo "Iteration $i"; someCommand; someOtherCommand ; done *INFO: $START: The starting value for the for loop, can be replaced by an integer. $STEP: The step that the for loop is performing at the end of each iteration, can be replaced by an integer.…
By adding commands at the end of the ssh command they will be issued at the remote machine and you will get back stdout and stderr results on the local machine. ssh useraccount@boxname 'someCommand | someOtherCommand'
In case you have some output you want to add it to an HTML document, you need to make some modifications to it to make it appear properly. One of them would be to replace the newline characters with the tag. If you have GNU sed, you can use…