expect keay per bash

11/11/2010 - 12:18 von Guido Stroehr | Report spam
Hello
I ca'nt send "ctrl+a c" in expect by bash.
I have tried all possible variations of quoting it and I can not.
Could someone show me the correct syntax?
Example:

*** schnipp ***
#!/bin/bash
exp=/usr/bin/expect
$exp -c "spawn screen -mS blah; expect *w:~*; send \0143; interact;"
*** schnapp ***

If this is of concern, my system:
Linux fw 2.6.31.14-0.1-default #1 SMP 2010-09-17 11:32:00 +0200 i686 i686
i386 GNU/Linux

Thanks
 

Lesen sie die antworten

#1 Fr
11/11/2010 - 19:00 | Warnen spam
Hallo Guido,

Am 11.11.2010 12:18, schrieb Guido Stroehr:
Hello
I ca'nt send "ctrl+a c" in expect by bash.
I have tried all possible variations of quoting it and I can not.
Could someone show me the correct syntax?
Example:

*** schnipp ***
#!/bin/bash
exp=/usr/bin/expect
$exp -c "spawn screen -mS blah; expect *w:~*; send \0143; interact;"
*** schnapp ***

If this is of concern, my system:
Linux fw 2.6.31.14-0.1-default #1 SMP 2010-09-17 11:32:00 +0200 i686 i686
i386 GNU/Linux

Thanks



das hier ist die de.* Newsgruppen-Hierarchie, also deutschsprachig.
Du brauchst dich demnach nicht mit Englisch zu verausgaben ;)

Viele Grüße aus den Alpen,
Frank

Ähnliche fragen