I don't want the terminal to exit!
Well, I have a small problem that hopefully one of you can help me with.
I'm making my fluxbox menu right now, and I have one command like [exec] (fortune) {gnome-terminal -e fortune} The problem is that it when fortune ends, the terminal ends. All I want to know is if there is a way to keep that terminal open. Thanks in advance. |
If you just want fortune to run when you open a terminal, I'd suggest putting the call to fortune in your .bashrc, rather than in your menu. Every time you open a terminal, your .bashrc is run anew for that particular instance of the terminal.
That way your fluxbox menu entry is just [exec] (terminal) {gnome-terminal}, and fortune will run itself each time you open it. Code:
[me@localhost ~]$ cat .bashrc |
Quote:
Thanks for your help, but I'd want a way to keep the console up after a command is completed. I have several other programs that will exit after they are finished and would like to find a way to keep it up. The & didn't work :-(. |
I don't know if bumping is rude, but this is on the third page and I would really like some help.
|
I hope I'm not being annoying, but bump?! I would really like some help.
|
From all I've seen on Google and trying this myself, you can't do what you want...rxvt just ain't gonna make it happen. If you want a terminal to stay up after you run a program, open rxvt through your menu, and then run whatever program it is you want to run.
|
Quote:
My suggestion would be if you really want to be able to click on 'fortune' and read it by the terminal window staying open long enough, write a simple script that calls fortune and then perhaps sleeps for however long you want it to stay open for, which will cause the terminal to stay open for however many seconds you set it to... I did a test and it worked.. the script would be as followed for you: Code:
#!/bin/bash [exec] (fortune) {/path/to/new/script} And come to think of it, you could probably just add the sleep portion at the end of your existing fortune link in the menu like this: [exec] (fortune) {gnome-terminal -e fortune && sleep 120} |
You could use an xterm instead.
Code:
xterm -hold -e fortune |
Quote:
|
Quote:
So close to what I would like. Thanks for your help. But if it's possible, is there a way that you could return to the prompt to enter commands afterwards? |
I tried gnome-terminal && fortune, but that didn't do a thing. I wonder if there is a way to run a command pointed to a specific terminal open. Hrrrm.
|
Quote:
|
I've looked and there isn't anything that would help/
Man, I really hope this is possible. |
Why can't you just have a menu option that opens a terminal, and then just run the command that you want to run? Since you want the terminal to remain active anyway, it can't be that you don't like using the commandline....? The menu won't save you that much time in the long run, really it won't.
If they're complicated program names, or have long options and so on, you could always just set up an alias for them. in .bashrc: alias short_cut="long_winded_program_name -with -lots -of -options" |
Because it's kinda the whole scheme of my fluxbox configuration. It's just not for fortune, that's just an example.
|
All times are GMT -5. The time now is 03:41 PM. |