Re: ontape used in scripts
Posted in 1999
Hi Andrzej,
I am using
/usr/informix/bin/ontape -s -L 0 <<EOF
EOF
with 2 times \\n and it works OK. Hier a hexdump of the here script
xd -xc xx
0000000 6f6e 7461 7065 202d 7320 2d4c 2030 203c
o n t a p e - s - L 0 <
0000010 3c45 4f46 2032 3e26 3120 3e3e 2024 5349
< E O F 2 > & 1 > > $ S I
0000020 4348 4552 554e 475f 4c4f 470a 0a0a 454f
C H E R U N G _ L O G \\n \\n \\n E O
0000030 460a 200a
F \\n \\n
0000034
Ciao
Monika Rabold
Bull GmbH Langen
Robert Boschstr. 52
63225 Langen
Tel: 06103/761-4225
Fax: 06103/761-4266
email: mora@swh600.langen.bull.de
On Wed, 26 May 1999, Monika Rabold wrote:
> >From owner-informix-list@iiug.org Wed May 26 10:52:05 1999
> Received: from iiug.iiug.org (www.iiug.org [206.175.175.254])
> by www.langen.bull.de (8.9.1/8.9.1) with ESMTP id KAA24242
> for <mora@langen.bull.de>; Wed, 26 May 1999 10:52:05 GMT
> Received: (from majordom@localhost) by iiug.iiug.org (8.7.5/8.7.3) id DAA23013; Wed, 26 May 1999 03:40:10 -0500 (CDT)
> From: Andrzej Piotrowski <a.piotrowski@apexim.com.pl>
> To: informix-list@iiug.org
> Subject: ontape used in scripts
> Date: Wed, 26 May 1999 07:19:17 +0000
> Organization: APEXIM S.A.
> Message-Id: <374BA075.6B95EB45@apexim.com.pl>
> Reply-To: Andrzej Piotrowski <a.piotrowski@apexim.com.pl>
> X-List-Gateway: comp.databases.informix
> Sender: owner-informix-list@iiug.org
> Precedence: bulk
>
> I have a few scripts to backup my informix database.
> In script set as ALARMPROG in onconfig I have following sequence:
> .
> .
> .
> /usr/informix/bin/ontape -a <<EOF
>
> n
> EOF
> .
> .
> .
> and it works fine.
> Another script, that I am planning to put into cron, has a very similar
> sequence:
> .
> .
> .
> /usr/informix/bin/ontape -s -L 0 <<EOF
>
> EOF
> .
> .
> .
> but it does'n work, because, in this second case, ontape seems not to
> read this Return character before EOF. As I have notticed running it at
> command line, it expects hitting Return key directly from keyboard.
> Anybody knows what is going on?
> Thanks for any advice...
>