LinuxQuestions.org
Review your favorite Linux distribution.
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 04-25-2004, 08:51 AM   #1
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69

hi there
i am facing some problem here
i have added
xhost +mymachineip

in .bash_profile




when i login into kde
it does get executed but when i go to icewm it does not
pl. help
 
Old 04-25-2004, 03:39 PM   #2
cswor
Member
 
Registered: Apr 2004
Location: TN
Distribution: Only used RH but have heard good things about Mandrake. BSD might be interesting.
Posts: 46

Rep: Reputation: 15
.profile runs only at login. if you need something to run whenever a new bash shell is ceated, put it in .bashrc in your home dir. if you are not actually loggin in the icewm, .profile wouldn't be run again. you also might check to see if icewm has an rc file associated with it. if it does, that might be the best place to put your xhost + stuff.
 
Old 04-27-2004, 07:17 AM   #3
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Original Poster
Rep: Reputation: 69
i do not have .bashrc file.

what do u suggest????
 
Old 04-27-2004, 08:00 AM   #4
fsbooks
Member
 
Registered: Jan 2002
Location: Missoula. Montana, USA
Distribution: Slackware (various)
Posts: 464

Rep: Reputation: 52
$ cp /etc/bashrc $HOME/.bashrc
$ vi $HOME/.bashrc
 
Old 05-02-2004, 09:41 AM   #5
linuxfond
Member
 
Registered: Jan 2003
Location: Belgium
Distribution: Mandrake 9.2
Posts: 475

Rep: Reputation: 30
Hello,
I have a Microsoft Internet Keyboard with a few extra keys.
I run lineakd to enable these keys.
Now I would like to add a line into bashrc or bash_profile so that this command runs on boot. I don't know how to add it.
I tried simply adding the command "lineakd", but in this case only the lineakd will start, not the KDE. Sorry, I am not talking about the same problem, but the solution should be the same.
Please, help. The command should only run if lineakd isn't already running.

Last edited by linuxfond; 05-02-2004 at 09:42 AM.
 
  


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
Ubuntu How to run Python script on Login? warnetgm Linux - General 14 03-13-2012 06:11 PM
How to run a script as root upon login zugvogel Linux - Newbie 7 09-09-2005 11:10 AM
How to run a Script as root, after Login as User, in GDM MHOOO Red Hat 14 03-08-2005 08:41 AM
Run script at login instead of bash uzi4u Linux - General 2 04-28-2004 02:31 PM
run a script once at login? shanenin Linux - Software 2 04-25-2004 10:32 AM

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

All times are GMT -5. The time now is 12:27 PM.

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