I have 2 vagrant machines in a folder, and I'm constantly having to ssh in both and run the same command. Basically I do:
$ vagrant ssh machine1
[vagrant@machine1 ~]$ sudo rm -rf /tmp/cache/*
[vagrant@machine1 ~]$ exit
$ vagrant ssh machine2
[vagrant@machine2 ~]$ sudo rm -rf /tmp/cache/*
[vagrant@machine2 ~]$ exit
I'd like to create an alias or a little script I can run and it will do those things, so I don't need to type all that again and again...
Any ideas?