Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Screen stuff.
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Sparrowmelody
n00b
n00b


Joined: 21 Nov 2005
Posts: 32
Location: Spain

PostPosted: Mon Nov 21, 2005 12:44 am    Post subject: Screen stuff. Reply with quote

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
View user's profile Send private message
Dizzutch
Guru
Guru


Joined: 09 Nov 2004
Posts: 463
Location: Worcester, MA

PostPosted: Mon Nov 21, 2005 1:02 am    Post subject: Reply with quote

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
View user's profile Send private message
luisfelipe
Guru
Guru


Joined: 09 Apr 2005
Posts: 377

PostPosted: Mon Nov 21, 2005 1:12 am    Post subject: Reply with quote

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
View user's profile Send private message
anfpunk
Apprentice
Apprentice


Joined: 29 May 2003
Posts: 275
Location: Columbus, Oh

PostPosted: Mon Nov 21, 2005 3:05 am    Post subject: Reply with quote

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
View user's profile Send private message
Sparrowmelody
n00b
n00b


Joined: 21 Nov 2005
Posts: 32
Location: Spain

PostPosted: Mon Nov 21, 2005 5:06 am    Post subject: Reply with quote

Ah, starting it before X...I am losing my touch, as I'd have thought of that before :P
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 :P
_________________
WRYYY!
Back to top
View user's profile Send private message
ZZamboni
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jan 2004
Posts: 96
Location: Zurich, Switzerland

PostPosted: Mon Nov 21, 2005 1:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum