Re: how to run some screen command automaticly when attach a session

2007-10-29 Thread sunqiang
thanks for re reply, I know the "screen -t" (from searching ther archive of this mail list), but I don't know how to append encoding here. now, after i got screen -X here this morning. I write a little python script for a temporary solve. the script run two threads. first execute the system command

Re: how to run some screen command automaticly when attach a session

2007-10-29 Thread envisage
thanks for the reply. screen -X seems useful to my question. when i use scren -x , i got a text garbled session. after execute "screen -X encoding gbk gbk " in a window of this session or from another login tty(by putty). the text garbled dismissed. I just want to know, however, how to execute this

How to send commands to screen from within scripts)

2007-10-29 Thread Dan Mahoney, System Admin
Hey all, As part of a shellscript, I would like to run a series of commands that involve doing a "slow paste". The commands for this are: bufferfile /home/danm/summit48.cfg slowpaste 120 readbuf paste . Is there a way to have screen not launch a new session, but instead interpret screen-com

Re: how to run some screen command automaticly when attach a session

2007-10-29 Thread Sonia Hamilton
On Sun, 28 Oct 2007 15:50:21 +0300, "Andrew Pantyukhin" <[EMAIL PROTECTED]> said: > On Sun, Oct 28, 2007 at 06:53:57PM +0800, envisage wrote: > > for example, is there a method whenever attach a session with screen > > -x /-r, execte a "ctrl+a : encoding gbk gbk". Don't know if this helps, but you

Re: how to run some screen command automaticly when attach a session

2007-10-29 Thread Andy Harrison
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/28/07, envisage wrote: > for example, is there a method whenever attach a session with screen > -x /-r, execte a "ctrl+a : encoding gbk gbk". I believe you could also set the 'defencoding' param in your .screenrc file. - -- Andy Harrison p