I can help you with basic script creation, just not quite sure how you'd get it to do what you want over ssh. I assume you're familiar with the terminal, which by default uses the bash shell environment for you to type in your commands. A bash script has several properties:
1) the file is executable, use
2) the first line tells you what program will run it, in this case the shell:
3) the rest of the file contains a list of commands to run, one per line e.g:
Code: Select all
ls -l ~/Documents
echo "shameless plug"
apt-cache show mintupload
touch temp.txt
echo "hello world!" >> temp.txt
cat temp.txt
rm temp.txt
to run the script:
To learn more, google for "shell scripting"