[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sending CRLF via screen -X stuff
From: |
Micah Cowan |
Subject: |
Re: sending CRLF via screen -X stuff |
Date: |
Mon, 10 Nov 2008 21:02:34 -0800 |
User-agent: |
Thunderbird 2.0.0.17 (X11/20080925) |
-----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-----