On Wednesday 05 July 2006 11:44, Ariel Frailich 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.
This is what I do from a bash script the ` and " are significant.
Once I have started a detatched session using
/usr/bin/screen -A -d -m -S OPS

then I can send commands to it using

screen -S OPS -p 0 -X eval 'stuff "\015"'
this put just a newline in

whereas this sets the term value within the detatched session
screen -S OPS -p 0 -X eval 'stuff "export TERM=xterm\015"'


Hope this helps/


-- 
Best Regards,
--
David 

--------
Watson's Law:
        The reliability of machinery is inversely proportional to the
        number and significance of any persons watching it.


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

Reply via email to