Another one. :-) I start a script in my .profile with nohup which should execute when I login. The thing is, it does, but it does _twice_. Why is that? Another nice KDE "feature"? Not that it presents much of a problem, but it's pretty ugly to say the least. Also, how can I execute a scrip when I log_out_? Thanks in advance. -- cul8er, Paul paul.foerster@gmx.net
* Paul Foerster <paul.foerster@gmx.net> [01-18-04 15:30]:
I start a script in my .profile with nohup which should execute when I login. The thing is, it does, but it does _twice_. Why is that? Another nice KDE "feature"? Not that it presents much of a problem, but it's pretty ugly to say the least.
man bash search for login
Also, how can I execute a scrip when I log_out_?
man bash search for logout There is a _real_ reson for the man/info/howto files. -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org
Hey Patrick,
There is a _real_ reson for the man/info/howto files.
... since you seem to be soooooooo clever, you may have noticed that the man-page for bash is 5268 lines long and contains 29 occurences of the word "login" as well as 3 occurences of the word "logout" distributed all over the file. I'm sure you understand that asking a question for a one time thing is faster than reading 5268 lines of text just to add _one_ single line somewhere. Well, given you're answer, I'm not sure you understand that after all... I for one don't plan to get a university degree on login/logout behavior of a shell. Thanks very much for your insight. -- cul8er, Paul paul.foerster@gmx.net
* Paul Foerster <paul.foerster@gmx.net> [01-18-04 16:01]:
Hey Patrick,
There is a _real_ reson for the man/info/howto files.
... since you seem to be soooooooo clever, you may have noticed that the man-page for bash is 5268 lines long and contains 29 occurences of the word "login" as well as 3 occurences of the word "logout" distributed all over the file.
I'm sure you understand that asking a question for a one time thing is faster than reading 5268 lines of text just to add _one_ single line somewhere. Well, given you're answer, I'm not sure you understand that after all...
I for one don't plan to get a university degree on login/logout behavior of a shell.
Thanks very much for your insight.
You are welcome. Perhaps somewhat lazy. The third successful find of the word login gives you the beginning of an explanation and the first of logout. the files ~/.bash_login and ~/.bash_logout will accomplish what you wish seeing you cannot determine this yourself. if more help is necessary, please ask gud luk, -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org
participants (2)
-
Patrick Shanahan
-
Paul Foerster