On Tue, 4 Jul 2006 21:44:48 -0400
Ariel Frailich <[EMAIL PROTECTED]> wrote:

> Greetings!
> 
> I'm trying to send a string to the modem from a script, using <screen  
> -S myscreen -X stuff "string%n">. The problem is that I can't get the  
> newline character across: it just echoes exactly as I send it. I've  
> tried ^m, ^M, %n, %r, \015 and various other octal characters, but to  
> no avail.
<<snip>>

I actually figured this one out on my own after trying  everything from /n to 
\033 etc.
What I wound up doing is:

screen -S myscreen -X stuff "string <<actually hit Return>>
"

Putting the closing quotes on the next line.

-- 
Steve Scrimpshire
----------------------------
   The word "pixel" originally referred to the colored pegs in the Hasbro
   Lite-Brite.
     (http://gullible.info)


_______________________________________________
screen-users mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/screen-users

Reply via email to