LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   run a script once at login? (https://www.linuxquestions.org/questions/linux-software-2/run-a-script-once-at-login-174389/)

masand 04-25-2004 08:51 AM

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

cswor 04-25-2004 03:39 PM

.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.

masand 04-27-2004 07:17 AM

i do not have .bashrc file.

what do u suggest????

fsbooks 04-27-2004 08:00 AM

$ cp /etc/bashrc $HOME/.bashrc
$ vi $HOME/.bashrc

linuxfond 05-02-2004 09:41 AM

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.


All times are GMT -5. The time now is 09:38 AM.