ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    What Are You Doing Right Now

    Water Closet
    time waster
    285
    88.9k
    41.5m
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller @Obsolesce
      last edited by

      @Obsolesce said in What Are You Doing Right Now:

      But what we are currently talking about, SSH, works on 5.1 anyways.

      The discussion is about how slow PS is. All mentioning of SSH was that Bash was SO much faster than PS, that I'm able to SSH to remote boxes and run a bash command and tear down the SSH tunnel all faster than PS can launch.

      ObsolesceO 1 Reply Last reply Reply Quote 0
      • ObsolesceO
        Obsolesce @scottalanmiller
        last edited by

        @scottalanmiller said in What Are You Doing Right Now:

        @Obsolesce said in What Are You Doing Right Now:

        It did it above instantly (minus asking for password, just a test machine don't have that set up)

        I noticed zero speed difference than when I do it on Linux with BASH.

        That's because you specifically skipped the whole problem. You didn't time PS setting up, you set it up, then timed bash. Of course it came back fast, it was bash not PS that you timed!

        I didn't set up PowerShell... what do you mean by set it up?

        PowerShell opens the same speed as terminal opens before I start typing. Am I missing something or some context from somewhere?

        scottalanmillerS 1 Reply Last reply Reply Quote 0
        • scottalanmillerS
          scottalanmiller @Obsolesce
          last edited by

          @Obsolesce said in What Are You Doing Right Now:

          I didn't set up PowerShell... what do you mean by set it up?

          You sure did, it's there on the screen. Can't be if you didn't set it up. PowerShell's slowness almost entirely comes from its load time.

          1 Reply Last reply Reply Quote 0
          • ObsolesceO
            Obsolesce @scottalanmiller
            last edited by

            @scottalanmiller said in What Are You Doing Right Now:

            @Obsolesce said in What Are You Doing Right Now:

            But what we are currently talking about, SSH, works on 5.1 anyways.

            The discussion is about how slow PS is. All mentioning of SSH was that Bash was SO much faster than PS, that I'm able to SSH to remote boxes and run a bash command and tear down the SSH tunnel all faster than PS can launch.

            I asked for a real example, you gave SSH.

            scottalanmillerS 1 Reply Last reply Reply Quote 0
            • scottalanmillerS
              scottalanmiller @Obsolesce
              last edited by

              @Obsolesce said in What Are You Doing Right Now:

              I asked for a real example, you gave SSH

              No, I gave Uptime

              ObsolesceO 1 Reply Last reply Reply Quote 0
              • ObsolesceO
                Obsolesce @scottalanmiller
                last edited by

                @scottalanmiller said in What Are You Doing Right Now:

                @Obsolesce said in What Are You Doing Right Now:

                I asked for a real example, you gave SSH

                No, I gave Uptime

                Via SSH. Which is the same when done through PowerShell.

                scottalanmillerS 1 Reply Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller @Obsolesce
                  last edited by

                  @Obsolesce said in What Are You Doing Right Now:

                  @scottalanmiller said in What Are You Doing Right Now:

                  @Obsolesce said in What Are You Doing Right Now:

                  I asked for a real example, you gave SSH

                  No, I gave Uptime

                  Via SSH. Which is the same when done through PowerShell.

                  No, not through SSH. You missed the entire point to the point that you tested bash twice and never PowerShell. You've missed all of it. We aren't on the same subject. I'm discussing absolutely nothing but how slow PS is, nothing else. Not SSH speed, not at all.

                  1 Reply Last reply Reply Quote 0
                  • scottalanmillerS
                    scottalanmiller
                    last edited by

                    Simple example... no Linux, just PS vs CMD. Same command...

                    [scott@lax-lnx-jump ~]$ time ssh strongbad@strongbad "@powershell ls"
                    ....

                    real 0m1.772s
                    user 0m0.044s
                    sys 0m0.015s
                    [scott@lax-lnx-jump ~]$ time ssh strongbad@strongbad dir
                    .....

                    real 0m0.845s
                    user 0m0.043s
                    sys 0m0.011s

                    Same command, same box, PowerShell took twice as long as CMD.

                    1 Reply Last reply Reply Quote 0
                    • scottalanmillerS
                      scottalanmiller
                      last edited by

                      I'm using SSH only to give me a simple way to time the transaction. Because I have no idea how to get this time from inside Windows.

                      1 Reply Last reply Reply Quote 0
                      • ObsolesceO
                        Obsolesce
                        last edited by

                        I'm playing devil's advocate here because this PowerShell vs BASH thing isn't a solid apples to apples comparison. It just isn't, no matter how you swing it. What if I took a typical PowerShell and Windows example such as getting a list of AD users of a certain group, grabbing their email aliases (proxyaddress), and outputting it to a CSV...

                        That would look very different from BASH, and isn't typically a thing you would do with BASH. That isn't apples to apples.

                        scottalanmillerS 2 Replies Last reply Reply Quote 0
                        • scottalanmillerS
                          scottalanmiller @Obsolesce
                          last edited by

                          @Obsolesce said in What Are You Doing Right Now:

                          It just isn't,

                          Except it is. In both cases, I want to use a simple shell to run a simple command. PS is slow at its core task and BASH is fast at its core task. Apples to apples.

                          1 Reply Last reply Reply Quote 0
                          • JaredBuschJ
                            JaredBusch @scottalanmiller
                            last edited by

                            @scottalanmiller said in What Are You Doing Right Now:

                            @Obsolesce said in What Are You Doing Right Now:

                            @EddieJennings said in What Are You Doing Right Now:

                            @Obsolesce said in What Are You Doing Right Now:

                            @EddieJennings said in What Are You Doing Right Now:

                            @Obsolesce said in What Are You Doing Right Now:

                            @scottalanmiller said in What Are You Doing Right Now:

                            @black3dynamite yeah, PowerShell is still stuck in like 1982 here.

                            No, I think all of you are stuck in 1982 while PowerShell has moved on...

                            a21658d1-25a9-4708-9463-bb57020fc88c-image.png

                            Unless there's a bleeding-edge version of Powershell out now that has that cmdlet, it doesn't seem to be native for 5.1.

                            I know there's a module out there that does what your picture shows, but it would be nice if that was just baked-in.

                            No, nothing new or fancy... just plain old PS6:

                            c96854f2-bfba-41d6-8c9d-8d0d5c4adb64-image.png

                            That's promising then. Maybe in 5 years we'll have version 6 on everything where I work 😄 . It is telling that it took 6 versions to get that functionality.

                            PowerShell 7 is on its way with some sweet (and much needed) functionality.

                            that's cool

                            Not particularly. because they don't force it out to systems.

                            My fully updated Windows 10 systems still use PS 5.1
                            dd5899c0-7e34-434f-941d-f3155cdd170d-image.png

                            scottalanmillerS 1 Reply Last reply Reply Quote 2
                            • scottalanmillerS
                              scottalanmiller @Obsolesce
                              last edited by

                              @Obsolesce said in What Are You Doing Right Now:

                              That would look very different from BASH, and isn't typically a thing you would do with BASH. That isn't apples to apples.

                              Sure, but no need to do that since we have apples to apples SHELL comparisons, not comparing tasks called by the shells.

                              ObsolesceO 1 Reply Last reply Reply Quote 0
                              • scottalanmillerS
                                scottalanmiller @JaredBusch
                                last edited by

                                @JaredBusch yeah, I looked it up and MS said it wasn't the update to 5.1 but was a separate product. Out and available, but not in the upgrade path.

                                JaredBuschJ 1 Reply Last reply Reply Quote 0
                                • ObsolesceO
                                  Obsolesce @scottalanmiller
                                  last edited by

                                  @scottalanmiller said in What Are You Doing Right Now:

                                  @Obsolesce said in What Are You Doing Right Now:

                                  That would look very different from BASH, and isn't typically a thing you would do with BASH. That isn't apples to apples.

                                  Sure, but no need to do that since we have apples to apples SHELL comparisons, not comparing tasks called by the shells.

                                  I don't agree. They are two differen't tools built for different tasks.

                                  scottalanmillerS ObsolesceO 2 Replies Last reply Reply Quote 0
                                  • scottalanmillerS
                                    scottalanmiller @Obsolesce
                                    last edited by

                                    @Obsolesce said in What Are You Doing Right Now:

                                    I don't agree. They are two differen't tools built for different tasks.

                                    That makes no sense. If that is true, then you are saying that PowerShell is a abject failure because the only reasonable task of assuming it was for system management is not what it is for. Why does it exist then if not to be the "bash" everyone has wanted for decades on Windows?

                                    Of course they are apples to apples, they serve identical functions in every way.

                                    ObsolesceO 1 Reply Last reply Reply Quote 0
                                    • JaredBuschJ
                                      JaredBusch @scottalanmiller
                                      last edited by

                                      @scottalanmiller said in What Are You Doing Right Now:

                                      @JaredBusch yeah, I looked it up and MS said it wasn't the update to 5.1 but was a separate product. Out and available, but not in the upgrade path.

                                      Fully updated Hyper-V Server 2012 R2
                                      2fb9386b-410a-4116-9735-0b857d1763a0-image.png

                                      JaredBuschJ ObsolesceO 2 Replies Last reply Reply Quote 0
                                      • ObsolesceO
                                        Obsolesce @Obsolesce
                                        last edited by

                                        @Obsolesce said in What Are You Doing Right Now:

                                        @scottalanmiller said in What Are You Doing Right Now:

                                        @Obsolesce said in What Are You Doing Right Now:

                                        That would look very different from BASH, and isn't typically a thing you would do with BASH. That isn't apples to apples.

                                        Sure, but no need to do that since we have apples to apples SHELL comparisons, not comparing tasks called by the shells.

                                        I don't agree. They are two differen't tools built for different tasks.

                                        I know they CAN do many things that produce similar results and outputs, but they are different tools designed to deal with different things in different ways.

                                        scottalanmillerS 1 Reply Last reply Reply Quote 0
                                        • JaredBuschJ
                                          JaredBusch @JaredBusch
                                          last edited by

                                          @JaredBusch and Fully updated Hyper-V Server 2016

                                          5e285714-440b-444c-b505-ec73fcd0f34e-image.png

                                          1 Reply Last reply Reply Quote 0
                                          • ObsolesceO
                                            Obsolesce @JaredBusch
                                            last edited by

                                            @JaredBusch said in What Are You Doing Right Now:

                                            @scottalanmiller said in What Are You Doing Right Now:

                                            @JaredBusch yeah, I looked it up and MS said it wasn't the update to 5.1 but was a separate product. Out and available, but not in the upgrade path.

                                            Fully updated Hyper-V Server 2012 R2
                                            2fb9386b-410a-4116-9735-0b857d1763a0-image.png

                                            PS7 will be based on a newer .NET, and because of the different paths, it may not be so soon that PS7 ships with Windows, but it will.

                                            It will be PowerShell 7. No powershell 7 and powershell 7 core. The "core" will only exist in technical specs.

                                            scottalanmillerS 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3544
                                            • 3545
                                            • 3546
                                            • 3547
                                            • 3548
                                            • 4443
                                            • 4444
                                            • 3546 / 4444
                                            • First post
                                              Last post