Re: Handy tip for starting the Debug Console in Linux
Posted: Fri Nov 16, 2012 5:40 am
$ man screen
$ screen -dmS oolite ./oolite
NB: '$' is the prompt.
For information and discussion about Oolite.
https://bb.oolite.space/
$ man screen
$ screen -dmS oolite ./oolite
Hmm... Mint doesn't have screen by default. I'm guessing this has the same affect as my alias?Tricky wrote:$ man screen
$ screen -dmS oolite ./oolite
NB: '$' is the prompt.
I was wondering to myself, why go to the bother of launching Oolite via a terminal in the first place, but then I realised you maybe just do it after 'oodebug' in order to save a click or two.. (but if that's the case, why not just have a single alias that launches the Debug Console, and then starts Oolite, all in one?)CommRLock78 wrote:I added another alias, it's actually a couple more letters than oolite, but, it will launch the game and exit the terminal, much like your debug aliasCode: Select all
alias ooniverse='nohup oolite & exit'
Was posted just before I went to bed.CommRLock78 wrote:Hmm... Mint doesn't have screen by default. I'm guessing this has the same affect as my alias?Tricky wrote:$ man screen
$ screen -dmS oolite ./oolite
NB: '$' is the prompt.
Edit: Since you didn't get a chance to reply Tricky, I went ahead and installed - curiosity killed the cat, so to speak.... <reading man page now>
screen
creates a virtual terminal that you can run processes in.screen -r oolite
to reattach to it and <CTRL> A then keypress d to detach from it. Whilst attached to it you can treat it like any regular terminal.screen -ls
lists any screen sessions.screen -wipe
removes all dead sessions.Interesting - I just tried it out - and, as you say, there doesn't seem to be any attachment to the terminal, although pressing Ctrl+A returned me to the prompt without closing oolite. Man, there sure is a lot to learn about Linux .Tricky wrote:Was posted just before I went to bed.
Quick primer.
screen
creates a virtual terminal that you can run processes in.
The above line creates a detached terminal, that is not attached to, named oolite. Useful in startup scripts. You can usescreen -r oolite
to reattach to it and <CTRL> A then keypress d to detach from it. Whilst attached to it you can treat it like any regular terminal.
screen -ls
lists any screen sessions.
screen -wipe
removes all dead sessions.
No real reason other than I can - it lends me the opportunity of seeing what part of the line does what .Diziet Sma wrote:I was wondering to myself, why go to the bother of launching Oolite via a terminal in the first place....
Nice !Diziet Sma wrote:(by george, I'm a genius! <wanders off to modify the oodebug alias>