Re: Expect and backspace characters
From: Cameron Laird (claird_at_lairds.com)
Date: 12/26/03
- Next message: Gerald Lester: "Looking for "real time special effects" help with canvas/image"
- Previous message: sheila miguez herndon: "Re: stubbing problem"
- In reply to: Frost: "Expect and backspace characters"
- Next in thread: Frost: "Re: Expect and backspace characters"
- Reply: Frost: "Re: Expect and backspace characters"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 26 Dec 2003 18:49:21 -0000
In article <6b9e86d.0312221125.38e5e1a1@posting.google.com>,
Frost <frostread@yahoo.com> wrote:
>Hello everybody,
>
>I have an Expect script running from the Cron, and have found that the
>output of the script is full of backspace characters (^h), which make
>it somewhat difficult to read in my email client.
>
>I am using "spawn -noecho" when I launch a shell. However, the output
>I receive looks like this:
>
>--------------
>bash-2.05b$ CVSROOT='/data1/cvsroot' /usr/bin/cvs -q up -d
>/home/user/code
></cvsroot' /usr/bin/cvs -q up -d /home/user/coder
> ^H\
>^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^Hoot/scripts/Orders
>? /home/user/coderoot/scripts/Orders/Processing/order_data_in.txt
>--------------
>
>Anybody have an idea of how to preserve the normal script output but
>filter out the local echo and / or the backspace characters that are
>being output to Cron?
.
.
.
It sounds as though you're saying you want "the normal
script output" when run under some circumstances, rather
than the output you observe when running as cron. While
there are a number of ways to approach this, I'd invest-
igate how to make cron processes behave as "normal" ones.
It's likely you just need to set the TERM environment
variable or some other one-liner.
Expect FAQs frequently involve cron.
-- Cameron Laird <claird@phaseit.net> Business: http://www.Phaseit.net
- Next message: Gerald Lester: "Looking for "real time special effects" help with canvas/image"
- Previous message: sheila miguez herndon: "Re: stubbing problem"
- In reply to: Frost: "Expect and backspace characters"
- Next in thread: Frost: "Re: Expect and backspace characters"
- Reply: Frost: "Re: Expect and backspace characters"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|