niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
· nixdoc.net · man pages · Linux HOWTOs · FreeBSD Tips · Forums
navigation Forum index » Not Unix » VMS
PIPE redirection as stream file ?
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
Author Message
David J. Dachtera
*nix forums Guru Wannabe


Joined: 21 Mar 2006
Posts: 197

PostPosted: Fri Jul 21, 2006 2:07 am    Post subject: Re: PIPE redirection as stream file ? Reply with quote

"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
Keith A. Lewis
*nix forums Guru Wannabe


Joined: 18 May 2005
Posts: 103

PostPosted: Thu Jul 20, 2006 5:29 pm    Post subject: Re: PIPE redirection as stream file ? Reply with quote

"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
pierre.bru@gmail.com
*nix forums beginner


Joined: 09 Sep 2005
Posts: 18

PostPosted: Wed Jul 19, 2006 11:51 pm    Post subject: PIPE redirection as stream file ? Reply with quote

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
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
The time now is Tue Nov 25, 2014 10:46 pm | All times are GMT
navigation Forum index » Not Unix » VMS
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Reusing Postfix configuration file - main.cf ptyagi FreeBSD 0 Wed Jul 08, 2009 9:17 pm
No new posts Unusual Postfix Redirection lairyaus Postfix 0 Tue Feb 17, 2009 5:23 am
No new posts redirection url d.martineau@ima.tm.fr Apache 1 Fri Jul 21, 2006 1:20 pm
No new posts Running php file everyday on scheduled time sachin PHP 1 Fri Jul 21, 2006 12:49 pm
No new posts Regarding thesaurus iso file Srikanth modules 0 Fri Jul 21, 2006 10:42 am

Copyright © 2004-2005 DeniX Solutions SRL
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum |  email marketing service
 
Privacy Policy
[ Time: 0.0849s ][ Queries: 20 (0.0548s) ][ GZIP on - Debug on ]