bananian- run program at login of a certain user

0 890
I want screen to run automatically when I login at root to prevent session losses. adding
  1. if $(screen -ls | grep -q pts); then  screen -x; else screen -R; fi

Copy the Code
to .profile, .bashrc, or .bash_profile (should) work, but it doesn't
(I have screen installed confirmed...)
You have to log in before you can reply Login | Sign Up

Points Rules