View Single Post
shallimus's Avatar
Posts: 568 | Thanked: 969 times | Joined on Dec 2009 @ Toronto
#12
Originally Posted by JohnLF View Post
/path/to/paperthrow

Not sure where it is? Try which paperthrow or if all else fails

find / -name paperthrow -print

Probably not the best way, but I've been doing that for 25 years and it works for me
Also see echo $PATH for a list of directories that the shell will search in for commands (that's not an exhaustive list as there are some built-in commands, but...)

And with find, you may want to add wildcards, like:
Code:
find / -name '*leafpad*'
...just in case it's leafpad-something or what-have-you.

Originally Posted by demolition View Post
Also, be careful about shutting the terminal you used to initiate the launch because you'll close both at once - unless that's what you want. Not sure if you can spawn the new programme so it's uneffected by whatever goes on in the terminal.
True about closing the xterm. To get around that, use nohup so the child process won't allow itself to be killed (nohup == no hangup == process will ignore a HANGUP signal telling it to kill itself) and an ampersand (&) so it launches in the background and returns control of the terminal to you:
Code:
nohup ./some-text-editor myfile.txt &
__________________
tinfoilhat.dll: Trojan horse detected
Sailfish want list: calendar bugfixes, glanceable agenda, Swype or similar
Evolution continues (but we're still pre-Cambrian)


Last edited by shallimus; 2011-10-05 at 01:07. Reason: Merging two similar posts
 

The Following 2 Users Say Thank You to shallimus For This Useful Post: