View Single Post
Copernicus's Avatar
Posts: 1,986 | Thanked: 7,698 times | Joined on Dec 2010 @ Dayton, Ohio
#23
Originally Posted by raffe View Post
I would like a shortcut that
1. opens X terminal
2. Runs
nohup x11vnc -forever&
3. And then waits there until I do a Ctrl+C
I think explicitly calling osso-xterm with an exec flag from the shell script should do what you are saying here. Something like this:

Code:
#!/bin/sh
/usr/bin/osso-xterm -e "nohup x11vnc -forever"
Note: don't use the "&" flag, or the xterm will spawn off an independent x11vnc process and immediately close!

Edit: Or not. I just tried running osso-xterm -e "fennec &", and it worked exactly the same as just osso-xterm -e "fennec". Oh well, guess you can't use that sort of flag with -e...

Last edited by Copernicus; 2011-02-10 at 20:33. Reason: Ampersand not working like I thought
 

The Following User Says Thank You to Copernicus For This Useful Post: