View previous topic :: View next topic |
Author |
Message |
Sparrowmelody n00b
Joined: 21 Nov 2005 Posts: 32 Location: Spain
|
Posted: Mon Nov 21, 2005 12:44 am Post subject: Screen stuff. |
|
|
Hi there! Sorry if this question is already around (trying to find for screen returns nothing!)...
I am new to screen, the "terminal multiplexing app" and I am quite curious about it. After learning the commands and the many advantages of its usage, I am officially in love with it
Now what I have to ask is...can you share some of your screen experiences? I mean...how do you use it, setups, ideas and hints? I am quite curious of what skilled users can do with it.
NOTE: This is not a question that can be answered with RTFM, I already know how to use screen...but I want to know more stuff and curiosities!
Thanks in advance everyone! _________________ WRYYY! |
|
Back to top |
|
|
Dizzutch Guru
Joined: 09 Nov 2004 Posts: 463 Location: Worcester, MA
|
Posted: Mon Nov 21, 2005 1:02 am Post subject: |
|
|
i juse it in a simple way, just have a screen open on my home machine, and whenever i ssh into it i attach it, just so i don't forget about wat i was doing at home before i left.. _________________ Help the confused! Adopt an unanswered post!
prepend [solved] to your post title when you feel your issue is resolved.
Worcester Judo |
|
Back to top |
|
|
luisfelipe Guru
Joined: 09 Apr 2005 Posts: 377
|
Posted: Mon Nov 21, 2005 1:12 am Post subject: |
|
|
We use here at our local lan to handle torrent downloads. We start a screen session with a user called 'user' (yeah, it's *that* original)
and run btlauncmanycurses, and then whenever we want to see what's going on we just do an emerge -x user/
Works like a charm |
|
Back to top |
|
|
anfpunk Apprentice
Joined: 29 May 2003 Posts: 275 Location: Columbus, Oh
|
Posted: Mon Nov 21, 2005 3:05 am Post subject: |
|
|
Here is my basic one.
Code: |
defutf8 on
startup_message off
screen 0
screen -t irc 1 irssi
screen -t mail 2 mutt
screen 3 su -
screen 4 su -
screen 5 ssh -l root c1
screen 6 ssh -l anfpunk c1
screen 7
screen 8
screen 9
screen 10 getmail -r anfpunk-gmail.getmailrc
|
Also, I use screen before startx that way I can detach and if someone kills my xserver they dont have a shell. |
|
Back to top |
|
|
Sparrowmelody n00b
Joined: 21 Nov 2005 Posts: 32 Location: Spain
|
Posted: Mon Nov 21, 2005 5:06 am Post subject: |
|
|
Ah, starting it before X...I am losing my touch, as I'd have thought of that before
I used to do the same thing using TWIN, a text-based WM...allowed attaching/detaching and it was very useful to not lose my Irssi connection when I restarted X.
I just thought of something nice to do using screen and FVWM...I'll post it right here if I manage to pull it out _________________ WRYYY! |
|
Back to top |
|
|
ZZamboni Tux's lil' helper
Joined: 16 Jan 2004 Posts: 96 Location: Zurich, Switzerland
|
Posted: Mon Nov 21, 2005 1:24 pm Post subject: |
|
|
I use this script, run from crontab during the night, which starts a detached screen and runs eix sync and emerge -uDav world on it, so when I come to work, I do "screen -RR" and today's list of updates is there, and all I have to do is say "Yes"
Code: | #!/bin/sh
NAME="portagesync$$"
/usr/bin/screen -S $NAME -m -d
/usr/bin/screen -S $NAME -p 0 -X stuff '/usr/sbin/eix-sync && /usr/bin/emerge -uDav world^M'
echo "Esync running on screen $NAME - run screen -ls" |
You have to end the command with a Ctrl-M (in vi, press Ctrl-V Ctrl-M), otherwise the command doesn't get execute. |
|
Back to top |
|
|
|