Skip to content
This repository was archived by the owner on Feb 3, 2021. It is now read-only.
This repository was archived by the owner on Feb 3, 2021. It is now read-only.

Output is returned with StandardError instead of StanderdOutput #64

@nikhilranosys

Description

@nikhilranosys

I am using certificate-cli to automate batching process and noticed that when I run batching command from my C# code it returns results as StandardError instead of StandardOutput. So when I read output after running the command it doesn't give me Batch Certificate Root hash.

        ```
        Process p = new Process();
        p.StartInfo.RedirectStandardOutput = true;
        p.StartInfo.UseShellExecute = false;
        p.StartInfo.CreateNoWindow = true;
        p.StartInfo.FileName = "node";
        p.StartInfo.Arguments = "index.js batch unsigned_certs signed_certs";
        p.Start();
        p.Start();
        Console.WriteLine(p.StandardOutput.ReadToEnd());
**Output:**
[BLANK]
==========================================================

But when I do the same and read error I am getting expacted output in StandardError

            ```
            Process p = new Process();
            p.StartInfo.RedirectStandardError = true;
            p.StartInfo.UseShellExecute = false;
            p.StartInfo.CreateNoWindow = true;
            p.StartInfo.FileName = "node";
            p.StartInfo.Arguments = "index.js batch unsigned_certs signed_certs";
            p.Start();
            p.Start();
            Console.WriteLine(p.StandardError.ReadToEnd());

Output:
2019-07-12T05:42:25.661Z �[32minfo�[39m: Batch Certificate Root: 0xaa9a18e1544bfbad4e2d54a62fd651cbed98c127f9c28da007d29bfeae59896d

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions