Well...after playing a bit, I found that if I Print Err right after opening the pipe, there is no need for any intervention (no need to press ENTER twice).
dim csysname as string
dim xfnum as long
xfnum = freefile()
open pipe "/usr/sbin/asterisk -rx 'rpt showvars 1100'" for input as #xfnum
print Err
do while( not eof( xfnum ) )
input #xfnum, csysname
? "Data From ASL " ; csysnameloop
close #xfnum
#include once "crt/stdio.bi"
dim as string redirect_file = "/dev/null" '"test.xxx"
dim as FILE ptr filePtr
print "test_123"
filePtr = freopen(redirect_file, "w+", stdout)
if filePtr <> 0 then
print "test_456" 'this output is redirected
fclose(filePtr)
else
print "Error"
end if
print "test_789" 'this also, a reset is needed