How Are STDIN, STDOUT, and STDERR used in Asterisk? james_winston 28-August-2008 04:09:56 PMComments All of the communications between Asterisk and the AGI program happen over STDIN and STDOUT (and, of course, STDERR) Posted by adalson007 STDIN , STDOUT , and STDERR are channels by which programs in Unix-like environments receive information from and send information to external programs. STDIN, or standard input, is the information that is sent to the program, either from the keyboard or from another program. In our case, information coming from Asterisk itself comes in on the program's STDIN file handle. STDOUT, or standard output, is the file handle that the AGI script uses to pass information back to Asterisk. Finally, the AGI script can use the STDERR (standard error) file handle to write error messages to the Asterisk console. Posted by james_winston What Are STDIN, STDOUT, and STDERR? STDIN , STDOUT , and STDERR are channels by which programs in Unix-like environments receive information from and send information to external programs. STDIN, or standard input, is the information that is sent to the program, either from the keyboard or from another program. In our case, information coming from Asterisk itself comes in on the program’s STDIN file handle. STDOUT, or standard output, is the file handle that the AGI script uses to pass information back to Asterisk. Finally, the AGI script can use the STDERR (standard error) file handle to write error messages to the Asterisk console. Let’s sum up these three communications concepts: • An AGI script reads from STDIN to get information from Asterisk. • An AGI script writes data to STDOUT to send information to Asterisk. • An AGI script may write data to STDERR to send debug information to the Asterisk console. Posted by sagitraz |
Posted: 29-August-2008 12:58:14 AM By: sagitraz What Are STDIN, STDOUT, and STDERR? STDIN , STDOUT , and STDERR are channels by which programs in Unix-like environments receive information from and send information to external programs. STDIN, or standard input, is the information that is sent to the program, either from the keyboard or from another program. In our case, information coming from Asterisk itself comes in on the program’s STDIN file handle. STDOUT, or standard output, is the file handle that the AGI script uses to pass information back to Asterisk. Finally, the AGI script can use the STDERR (standard error) file handle to write error messages to the Asterisk console. Let’s sum up these three communications concepts: • An AGI script reads from STDIN to get information from Asterisk. • An AGI script writes data to STDOUT to send information to Asterisk. • An AGI script may write data to STDERR to send debug information to the Asterisk console. | |
Posted: 01-September-2008 01:03:56 PM By: james_winston STDIN , STDOUT , and STDERR are channels by which programs in Unix-like environments receive information from and send information to external programs. STDIN, or standard input, is the information that is sent to the program, either from the keyboard or from another program. In our case, information coming from Asterisk itself comes in on the program's STDIN file handle. STDOUT, or standard output, is the file handle that the AGI script uses to pass information back to Asterisk. Finally, the AGI script can use the STDERR (standard error) file handle to write error messages to the Asterisk console. | |
Posted: 01-September-2008 01:29:19 PM By: adalson007 All of the communications between Asterisk and the AGI program happen over STDIN and STDOUT (and, of course, STDERR) |