|
-
Jan 16th, 2003, 09:12 PM
#1
Thread Starter
Frenzied Member
VB Advanced Question
Does anyone know what are pipes, what are they used for, and why would they be used?
MicroBasic
Dragon Shadow Trainer
There is no good or evil in the world...only programmers and fools .
-
Jan 16th, 2003, 09:21 PM
#2
Frenzied Member
Pipes give processes a way to communicate.
-
Jan 16th, 2003, 09:25 PM
#3
PowerPoster
unless your talking about plumbing I have no idea ;D
msft has a good section though:
http://msdn.microsoft.com/library/de...sing_pipes.asp
-
Jan 16th, 2003, 09:49 PM
#4
PowerPoster
check out the example on allapi ... kinda cool
http://www.allapi.net/apilist/CreatePipe.shtml
-
Jan 16th, 2003, 10:02 PM
#5
Thread Starter
Frenzied Member
Originally posted by Shawn N
Pipes give processes a way to communicate.
OK, but do you know how pipes work?
MicroBasic
Dragon Shadow Trainer
There is no good or evil in the world...only programmers and fools .
-
Jan 16th, 2003, 10:41 PM
#6
Frenzied Member
Originally posted by Microbasic
OK, but do you know how pipes work?
Much like files. What are you getting at?
-
Jan 17th, 2003, 01:42 AM
#7
Fanatic Member
OK this is what I understand about pipes that I learnt from Unix. You use a pipe when you want the output of one program to become the input of another, e.g
Code:
cat infile.txt | awk '{print $1'}
The output of cat usually goes to the screen but in the above case it goes to the awk command which uses it as input, prints the first column of each record. The nice thing about pipes in Unix is that it avoids you from creating temporary files to store intermediate results and most interesting of all you can combine many small command line utilities using pipes to produce great tools and functionalities. Of course the Unix commands do not make any assumptions about their inputs, for example they don't expect all their inputs to come from the keyboard, in fact all inputs (keyboards, mouse, ouput from a file) are considered as devices.
Well thats an explanation from the Unix world, I don't know if it answers your question.
Using VB.NET 2003/.NET 1.1/C# 2.0
http://del.icio.us/rajoo
Blow your mind, smoke gunpowder
Ashes to ashes, dust to dust
If God won't have you, the devil will. - Author unknown
Don't follow me, I'm lost too ...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|