Through with Output Statement

Hello All, hope you all are well. :)

I want to know the usage of through with output statement. I have gone through its help but didn’t understand much regarding the same.

If we have something like:

Code:
OUTPUT STREAM strMail THROUGH

  VALUE("/usr/lib/sendmail -bm –f abc@gmail.com -t " + xyz@gmail.com) NO-ECHO.

And after this code (mentioned above), we have various put streams as well.

How does above code works with sendmail, Please Suggest.

Regards,
Rajat.
 
Last edited:

TomBascom

Curmudgeon
Are you familiar with the basic concept of tying together UNIX processes with pipes? (Which also works for Windows CMD shells...)

For example:

ls | sort

where the "ls" command sends it's output to the "sort" command?

The THROUGH keyword is (basically) doing the same thing as the pipe symbol. Any output to the stream (strMail) will be sent to the program specified (which you are starting with your VALUE() statement.
 
Top