Free Downloads, Community Forum,
FAQs and Developer Resources


Make /Tools Your Home | Link to us

Today's posts | Posts since last visit | Most Active Topics

All Forums Register Login Search Subscriptions My Profile Inbox
Tool Warehouse FAQs Resources Help Member List Address Book Logout

Need help capturing pipe to a file in shell script

 
Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [SFU / Interix / SUA Technology] >> Interix Advanced Forum >> Need help capturing pipe to a file in shell script Page: [1]
Login
Message << Older Topic   Newer Topic >>
Need help capturing pipe to a file in shell script - Nov. 2, '05, 8:22:49 PM   
heinz

 

Posts: 63
Joined: Oct. 21, '04,
Status: offline
The command:
echo "this is some text" | shellscript abc def ghi

My problem:
How to capture "this is some text" so that I can process it,
I.e. capture to a file.

What I'm attemting to do is process the text echo'd into a file after writing the
parameters passed first. No problem capturing abc, def, ghi into environment
variables. I just can't get the text that's being piped to shellscript. I'm trying to
simulate mail/mailx in shellscript.

Thanks in advance for your help.

Heinz
Post #: 1
RE: Need help capturing pipe to a file in shell script - Nov. 2, '05, 9:49:52 PM   
heinz

 

Posts: 63
Joined: Oct. 21, '04,
Status: offline
Got it.

cat > filename as first command did it.

(in reply to heinz)
Post #: 2
Page:   [1]
All Forums >> [SFU / Interix / SUA Technology] >> Interix Advanced Forum >> Need help capturing pipe to a file in shell script Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Search All Forums -

Advanced search


SPONSORS



Forum Software © ASPPlayground.NET Advanced Edition 2.5 ANSI

0.063