|
|
|
|
|
|
| Author |
Message |
pierre.bru@gmail.com *nix forums beginner
Joined: 09 Sep 2005
Posts: 18
|
Posted: Wed Jul 19, 2006 11:51 pm Post subject:
PIPE redirection as stream file ?
|
|
|
hi,
PIPE redirection are "Record format: VFC, 2 byte header" files
I got a program the output some text followed by <CR><LF> and the
result is the the redirected output contains 2 records: the 1st
contains the data and the 2nd is empty
is it possible to change this behavior ?
TIA,
Pierre. |
|
| Back to top |
|
 |
Keith A. Lewis *nix forums Guru Wannabe
Joined: 18 May 2005
Posts: 103
|
Posted: Thu Jul 20, 2006 5:29 pm Post subject:
Re: PIPE redirection as stream file ?
|
|
|
"Pierre" <pierre.bru@gmail.com> writes in article <1153353100.976519.4720@m79g2000cwm.googlegroups.com> dated 19 Jul 2006 16:51:41 -0700:
| Quote: |
PIPE redirection are "Record format: VFC, 2 byte header" files
I got a program the output some text followed by <CR><LF> and the
result is the the redirected output contains 2 records: the 1st
contains the data and the 2nd is empty
is it possible to change this behavior ?
|
I don't think so.
What you can do is keep an empty stream_lf file around, then convert with a
copy command.
$ copy empty_stmlf.txt,your_vfc.txt stmlf_product.txt
--Keith Lewis klewis {at} mitre.org
The above may not (yet) represent the opinions of my employer. |
|
| Back to top |
|
 |
David J. Dachtera *nix forums Guru Wannabe
Joined: 21 Mar 2006
Posts: 197
|
Posted: Fri Jul 21, 2006 2:07 am Post subject:
Re: PIPE redirection as stream file ?
|
|
|
"Keith A. Lewis" wrote:
| Quote: |
"Pierre" <pierre.bru@gmail.com> writes in article <1153353100.976519.4720@m79g2000cwm.googlegroups.com> dated 19 Jul 2006 16:51:41 -0700:
PIPE redirection are "Record format: VFC, 2 byte header" files
I got a program the output some text followed by <CR><LF> and the
result is the the redirected output contains 2 records: the 1st
contains the data and the 2nd is empty
is it possible to change this behavior ?
I don't think so.
What you can do is keep an empty stream_lf file around, then convert with a
copy command.
$ copy empty_stmlf.txt,your_vfc.txt stmlf_product.txt
|
Here's another approach:
$ copy nla0: empty.dat
$ set file/attr=rfm=stm empty.dat
$ pipe command | append sys$pipe empty.dat
--
David J Dachtera
dba DJE Systems
http://www.djesys.com/
Unofficial OpenVMS Marketing Home Page
http://www.djesys.com/vms/market/
Unofficial Affordable OpenVMS Home Page:
http://www.djesys.com/vms/soho/
Unofficial OpenVMS-IA32 Home Page:
http://www.djesys.com/vms/ia32/
Unofficial OpenVMS Hobbyist Support Page:
http://www.djesys.com/vms/support/ |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Mon Dec 01, 2008 7:45 pm | All times are GMT
|
|
Buy Playstation 3 | Debt Management | Loans | Cheap Magazine | Hypnosis
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|