-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to suppress output lines works #28
Comments
How about |
This syntax is invalid, valid redirection both STDOUT and STDERR to null is But my problem is, the script does not work when STDOUT is redirected to null. It produce serie of errors:
and hang until CTRL+C wasnt pressed. But inside of LUA script execution, the |
The When
It has no problems on the syntax of CMD.EXE because NUL is not a plain file to need to join the two outputs. To drop outputs, it works as we expected.
Sorry, it is the error when |
I will try to create single batch file as an EXPECT scripting function, call it from main batch by
this could be a way to make EXPECT silent |
Differently from Therefore, if child processes output nothing to console by redirecting , the expect function never works as we hope because they can read nothing from console. It is difficult for Expect.lua to satisfy your requests. |
trying to supress output lines from my EXPECT script. Have
echo(false)
statement as an first line of script (as in examples) but it still printing output lines. What is the logic ofecho()
statement? if it once set up to false, does it supress output until its set to true? have it false before any send command, but it does not help.Also tried
@expect.exe "%~f0" >NUL
or@expect.exe "%~f0 | break"
but does not work for some reasonThe text was updated successfully, but these errors were encountered: