|
|
02-10-2011
, 03:11 PM
|
|
|
Posts: 623 |
Thanked: 276 times |
Joined on Jan 2010
@ UK
|
#21
|
|
|
02-10-2011
, 03:48 PM
|
|
Posts: 21 |
Thanked: 2 times |
Joined on Apr 2010
|
#22
|
|
|
02-10-2011
, 04:28 PM
|
|
Posts: 900 |
Thanked: 1,709 times |
Joined on Dec 2010
@ Dayton, Ohio
|
#23
|
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
#!/bin/sh /usr/bin/osso-xterm -e "nohup x11vnc -forever"

|
|
02-11-2011
, 09:12 AM
|
|
Posts: 21 |
Thanked: 2 times |
Joined on Apr 2010
|
#24
|
I think explicitly calling osso-xterm with an exec flag from the shell script should do what you are saying here. Something like this:
Note: don't use the "&" flag, or the xterm will spawn off an independent x11vnc process and immediately close!Code:#!/bin/sh /usr/bin/osso-xterm -e "nohup x11vnc -forever"
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...
This works great!#!/bin/sh /usr/bin/osso-xterm -e "fennec"
#!/bin/sh /usr/bin/osso-xterm -e "nohup x11vnc -forever"
|
|
02-11-2011
, 09:20 AM
|
|
|
Posts: 1,621 |
Thanked: 4,296 times |
Joined on Apr 2009
@ Germany
|
#25
|
#!/bin/sh nohup x11vnc -forever & /bin/sh
|
|
02-11-2011
, 09:40 AM
|
|
Posts: 21 |
Thanked: 2 times |
Joined on Apr 2010
|
#26
|
try this, make a script (say "xvncnohup.sh)":
Put this script in /usr/binCode:#!/bin/sh nohup x11vnc -forever & /bin/sh
make a desktop file with the line
Exec=osso-xterm "/usr/bin/xvncnohup.sh"
Nicolai

|
|
02-17-2011
, 06:19 AM
|
|
Posts: 304 |
Thanked: 112 times |
Joined on May 2010
@ Malaysia
|
#27
|
Exec=/bin/busybox sh -c 'echo /path/to/script.sh | sudo gainroot'
|
|
02-19-2011
, 02:45 PM
|
|
Posts: 304 |
Thanked: 112 times |
Joined on May 2010
@ Malaysia
|
#28
|
|
|
03-26-2012
, 10:00 AM
|
|
Banned |
Posts: 34 |
Thanked: 3 times |
Joined on Jul 2011
|
#29
|
![]() |
| Thread Tools | Search this Thread |
|