Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Odd output from shell when Powershell is executed

  1. #11

    Default Re: Odd output from shell when Powershell is executed

    Quote Originally Posted by CubertTheDweller View Post
    Nope same result, 5 new lines in output text file.
    If you change > to >>
    "Unfortunately time is always against us" -- [Morpheus]

    .:https://github.com/Jetchisel:.

  2. #12
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,936

    Default Re: Odd output from shell when Powershell is executed

    Again just a stupid observation without any understanding:

    Aren't those 5 empty lines the same as the 5 empty lines in the real output? In othe words, are the lines with content lost?

    If true, I do not see what it tells us, but at least there is then some connection between what is output and what is in the file.

    I guess the same for @jetchisel's suggestion. The >> must then add again and again 5 empty lines to the output file.
    Henk van Velden

  3. #13
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    28,112
    Blog Entries
    15

    Default Re: Odd output from shell when Powershell is executed

    Quote Originally Posted by hcvv View Post
    Again just a stupid observation without any understanding:

    Aren't those 5 empty lines the same as the 5 empty lines in the real output? In othe words, are the lines with content lost?

    If true, I do not see what it tells us, but at least there is then some connection between what is output and what is in the file.

    I guess the same for @jetchisel's suggestion. The >> must then add again and again 5 empty lines to the output file.
    Hi
    There should be content in the file, in the OP's case on one computer no text just blank lines on another there is text....

    @OP nothing in the shell environment or profile that is different?
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  4. #14

    Default Re: Odd output from shell when Powershell is executed

    Yeaps it's an odd one but what appears to be limited to this one systems (thus far). Which has peek my attention as to why...

    As for the "newlines" number. I have seen it differ from 4 to 5 lines based on limited commands I have run.



    get-module gives 5 lines
    get-process gives 4 lines


    I agree that it sounds like maybe shell fails the writing of data to file when it comes across first line that has text(data) in it.

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •