-
-
Notifications
You must be signed in to change notification settings - Fork 268
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
Not getting the proper response from docker command #207
Comments
Edit: sorry, didn't notice you were running To answer your questions:
If there's an error (non-zero exit code), you'll get an exception using the code in your sample. If you don't get an exception, the process exited with Since you're running
Not impossible. You could remove lines and isolate one command in your |
You were absolutely correct, it was the ExecuteBufferedAsync() that I needed and I got the expected output. Then I tried to do it in a real case, and I'm having trouble with the final parameters. It can't seem to figure out the "createdbtest>createdbtestDump.sql" part. Output is: "Unknown database 'createdbtest > createdbtestdump.sql'" when selecting the database However, if I just give it the dbname(createdbtest), it does dump it right into the console. Not where I want it, which is in the docker container. It doesn't like redirecting the output to a file, is there something I'm missing, i.e. how to add the parameters correctly? |
Additional note: This is likely where using a batch file works best. I used a batch file and everything works as it should! |
Well, it does really seem like whatever The correct solution depends on what you're trying to achieve. If you want to pipe the output to a local file, then use |
Exactly, but it works a treat when I use a .bat file, and I'm sure a .sh file on linux. Thanks a LOT! |
Version
3.6
Details
I'm trying to execute the following docker command, I know the expected output
docker exec alantus_ivc-mariadb-1 mysqldump -u root -pMyPwd createdbtest>createdbtestDump.sql
The output should be: "mysqldump: Got error: 1049: "Unknown database 'createdbtest'" when selecting the database"
However, If I run either in CliWrap, it never gets the output and fails. In the catch, it shows
Questions:
Steps to reproduce
Shown above...
The text was updated successfully, but these errors were encountered: