run something not attached to xterm
I prepared this small script, its like this
#!/bin/bash #restart the stuck firefox killall firefox sleep 5 firefox done it fires firefox but it doesn't ends before I close firefox, What I want it to do is this script to fire up a firefox and close itself, I want firefox to keep running even if I close that xterm, just like firefox started from gnome panel. I would also love if someone explains what actually happens when i click firefox icon from gnome, does it run unattached or does it run attached to tty7 or tty1 ? |
Do
Code:
nohup firefox Code:
firefox See man nohup for more details |
firefox &
Or if this is on fedora, and firefox is the default browser, you can run htmlview which is a helper program. Try opening a terminal and running htmlview and see what happens. |
nohup got the job done, is there anything I should know about it, is it secure use on a server for other purposes,
edit: it didn't worked as I wanted on script, still after execution of firefox script stands still, it doesn't ends, is it possible to pass an command to gnome "Run Application" (alt-f2) from a shell? |
Code:
nohup firefox & |
"nohup firefox &" got the job done
|
pass a command to gnome "Run Application"
is it possible to pass a command to gnome "Run Application" from a shell?
|
Hi JoeJoe,
Not sure what you mean - do you mean initialize a GNOME/GUI session from a terminal session? If that's the case CTRL-ALT-F7 will do this in Fedora/RHEL/CentOS. Alternately, from a terminal session issuing the following command will startup a GUisession: Code:
# init 5 |
The thingy which opens with alt+f2 at gnome, the run application dialog, can I pass a command to it from a terminal?
|
Quote:
If you want to run, let's say, firefox from a terminal, why not just launch "firefox" from the command line instead of using that toy in the middle? |
Quote:
|
i need the software to run exacly as I clicked it from GUI, independently,without a terminal hanging around the screen (ps: nohup doesn't works in my target PC,)
|
Quote:
Code:
$ xclock & |
I just run
Quote:
|
Hi
You can also run in a screen: Code:
# screen |
All times are GMT -5. The time now is 07:42 AM. |