[Top][All Lists]

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

Re: [unclassified] Can't send newline

From: Steve Scrimpshire
Subject: Re: [unclassified] Can't send newline
Date: Tue, 4 Jul 2006 23:05:50 -0500

On Tue, 4 Jul 2006 21:44:48 -0400
Ariel Frailich <address@hidden> 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.

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
Steve Scrimpshire
   Spoons were invented before forks.

reply via email to

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