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 |
|
Login |
|
|
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
|
|
|
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.
|
|
|
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 |
|
|
|