LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-15-2005, 06:05 PM   #1
atom
Member
 
Registered: Feb 2004
Location: Slovenia
Distribution: archlinux
Posts: 271

Rep: Reputation: 31
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?
 
Old 08-21-2005, 06:07 PM   #2
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Try moving the sourcing statment to /etc/profile. If memory serves, that's the one for logging in.
 
Old 08-22-2005, 05:18 AM   #3
atom
Member
 
Registered: Feb 2004
Location: Slovenia
Distribution: archlinux
Posts: 271

Original Poster
Rep: Reputation: 31
Works perfectly. I wonder why the bashrc file states that this file is to be sourced by all *interactive* shells...
 
Old 08-22-2005, 03:27 PM   #4
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
need root .bashrc .bash_profile darkRoom Slackware 5 04-30-2005 03:24 AM
I have to ssh -l root to run root processes!? paul.nel Red Hat 3 11-15-2004 11:55 AM
bashrc not read by root, can't open display SerfurJ Slackware 6 12-05-2003 10:54 PM
.bashrc or .profile for root in SuSE jimsee Linux - General 3 11-15-2003 02:36 PM
LimeWire installed as root, can't run if not root sulzla Linux - Newbie 1 07-01-2003 07:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration