screen-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sending CRLF via screen -X stuff


From: Richard Elliot
Subject: Re: sending CRLF via screen -X stuff
Date: Tue, 11 Nov 2008 04:59:27 -0800

Thanks for the help.

Would this be correct?

while true; do screen -S 19268 -X stuff "signon"\012; sleep 1m; done



On Mon, Nov 10, 2008 at 9:02 PM, Micah Cowan <address@hidden> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Richard Elliot wrote:
> Hello,
>
> I am trying to send a remote command to an existing screen session:
>
> while true; do screen -S 19268 -X stuff "signon"; sleep 1m; done
>
> However, I need to send a new line (CRLF) after the command "signon".

Chances are you only need one of CR or LF, not both. Anyway, use octal
escapes: \012 and \015. (And yeah, I'd like to see a more complete set
of C-style escapes make their way in; low pri though.)

- --
Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer.
GNU Maintainer: wget, screen, teseq
http://micah.cowan.name/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkkZEeoACgkQ7M8hyUobTrGP5gCeOhO6BuYb1vtr1O8IF0U4/jSE
JlUAni/Yg5vT6GwgAk3xHpI7DHDFrrB3
=m69U
-----END PGP SIGNATURE-----


reply via email to

[Prev in Thread] Current Thread [Next in Thread]