On Nov 25, 2012 6:00 PM, "Mihir Mehta" <[email protected]> wrote: > > Hi folks, > > There's a machine running Ubuntu 12.04 which I need to log into sometimes graphically, and sometimes on ssh. Can you tell me some way to ensure that a command ('emacs --daemon' to be specific) gets executed each time I log in? I know this is done through 'startup applications' in the GUI and through '.bash'_profile' otherwise- but how can I make it happen exactly once in both instances?
put that in rc.local (or similar) file in your distro. it gets executed just at the end of init scripts > > -- > Mihir Mehta, > B. Tech. student, > Department of Computer Science and Engineering, > Indian Institute of Technology, Delhi. > > -- > Mailing list guidelines and other related articles: http://lug-iitd.org/Footer -- Mailing list guidelines and other related articles: http://lug-iitd.org/Footer
