The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Re: johnb-sender


  • Subject: Re: johnb-sender
  • From: rleong1
  • Date: Mon, 12 Apr 2004 16:44:00 +0000

--- In <a
href="/group/ukha_xpl/post?postID=r6ZmQszaNP6WMKW-QZtsTa_kBBd53hrXVaE7bbcmy7cPJvBD3xEObJXucasFfbPWIreuUu52XvIyZjriHPXaeQ">ukha_xpl@xxxxxxx</a>,
"John B" <home-automation@j...> wrote:
> > argh. it's because i'm trying to run it from a perl script. perl
> > doesn't seem to like passing along those \n to system commands. i
> > have it now calling a batch file which calls xplsend. roundabout
but
> > it works.
>
> You should be able to get it to work directly from within Perl by
using \\n (i.e. double up the backslash).
> Perl should correctly unescape this to \n.
>
> HTH,
>
> John

i tried that but it doesn't work.

if i call it with:
`xplsend ... command=write\\ntext=abc`;
the xplhal log shows
command=writentext=abc

if i send \n instead of \\n, it shows only
command=write






xPL Main Index | xPL Thread Index | xPL Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.