LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Konsole ?? (https://www.linuxquestions.org/questions/fedora-35/konsole-615764/)

mickeyboa 01-23-2008 11:04 AM

Konsole ??
 
Fedora 8 .
I have a script,seen here;

http://www.linux.com/feature/124918

I want the script to run just after the konsole opens, this way I won't have to run ./clock.sh everytime I open konsole /usr/bin/konsole isn't
a script file, so I can't add command ./clock.sh
in that file.
How would I do it ?

Uncle_Theodore 01-23-2008 11:15 AM

I guess, start it from your ~/.bashrc file? Don't know what happens if you open multimple consoles, though...

mickeyboa 01-23-2008 12:02 PM

Well putting it in .bashrc works, But!! it puts the clock on first line and blanks out the "bash prompt" , I have to do a a ctrl c to get bash prompt on the next line down.
If I open multipale kconsoles I get the same affect on all open ones.
I guess the problem is who gets the "first line"
the clock or bash prompt.

XavierP 01-23-2008 03:39 PM

Are you running ./clock.sh or ./clock.sh& ? The second command runs the program (and keeps it running) but it backgrounds it and brings up the bash prompt.

mickeyboa 01-23-2008 05:17 PM

XavierP, Thanks very much, that solved the problem.


All times are GMT -5. The time now is 06:16 PM.