LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   gpm-root can't be run from bashrc? (https://www.linuxquestions.org/questions/linux-software-2/gpm-root-cant-be-run-from-bashrc-353614/)

atom 08-15-2005 06:05 PM

gpm-root can't be run from bashrc?
 
Hello!

It would seem I have run into another jiffy here... I've put /usr/bin/gpm-root command into a file, sourced from /etc/bashrc, and it would seem it doesn't get run at all, or it doesn't really hold...

when I source bashrc again, it works.

Anyone know why this is happening?


gpm-root is a daemon that has to be run on every tty to enable console mouse menus. I want it to run every time I login so I don't have to remember to run it each time I log in to a new tty.


Anyone have any idea of what might be wrong?

archtoad6 08-21-2005 06:07 PM

Try moving the sourcing statment to /etc/profile. If memory serves, that's the one for logging in.

atom 08-22-2005 05:18 AM

Works perfectly. I wonder why the bashrc file states that this file is to be sourced by all *interactive* shells...

archtoad6 08-22-2005 03:27 PM

Sorry, I don't remember. I'm sure it's in the "FM's" somewhere. And eventually I will re-read the one that I remembered (vaguely) to make my suggestion. I think the answer to your "why" lies in the definition of an "*interactive* shell".

At least your immediate problem is solved.


All times are GMT -5. The time now is 07:10 AM.