How to Automatically run two commands after login?
- by Covi
I have these two commands that I need to manually run every time after login:
autossh -M 2000 -N -f -q -D 127.0.0.1:7070 user@domain.com
and
sudo mkdir /media/C
sudo mount /dev/sda2 /media/C
I'd like to make them automatically run every time I boot and login to my computer. I'm currently using 10.04LTS.
BTW, I only vaguely know what init.d…