hello, as it's not relatted to opensmtp, i don't know if replying is ok. please let me know if it wasn't.
> Here is a basic shell script that works. #!/bin/sh echo "register|report|smtp-in|*" echo "register|ready" while read -r line; do echo "$line" >> /tmp/test.txt done are you aware you just missed a use of cat? #!/bin/sh echo "register|report|smtp-in|*" echo "register|ready" cat >> /tmp/test.txt > However, the perl and lua equivalents do nothing. * I don't know about lua but as you used '>>' in your shell script, you have to use it in the perl one to get the same behavior. * also using print FH use the global FH (old school perl).. don't do that with serious scripts but you can write: #!/usr/bin/perl use autodie; open FH,'>/tmp/test.txt'; print ( "register|report|smtp-in|*\n" , "register|ready\n" ); print FH while <>; regards marc -- You received this mail because you are subscribed to firstname.lastname@example.org To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org