Writing console output to a file

I am using the command
virtualizecli -startServer >virtualizelogs.txt to write the logs to a file. But after executing the call to the server/virtual asset, I don't see that file is getting updated with the Application.showMessage statements.

Tagged:

Comments

  • benken_parasoftbenken_parasoft Posts: 901 ✭✭✭
    edited March 4

    For Application.showMessage() statements, you probably also need to pass the -appconsole argument. This works for soatestcli but I suspect it might work for virtualizecli as well.

    You might also consider adding 2>&1 to the end of your command so you get messages printed to error stream in addition to normal output stream.

  • srikanthmummadisrikanthmummadi Posts: 39

    Thank you

Sign In or Register to comment.