GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    Jen Gentleman (jenmsft@mastodon.social)'s status on Thursday, 02-May-2024 18:47:20 JST Jen Gentleman Jen Gentleman

    Did you know if you're working in the #Windows command line you can use clip to pipe the output of your command to the clipboard? 👀

    For example, you can do this in cmd if you want to copy and paste the info somewhere else (rather than manually having to select the output to copy it):

    systeminfo | clip

    In conversation about a year ago from mastodon.social permalink
    • Embed this notice
      Jake Hildreth (acorn) :blacker_heart_outline: (horse@infosec.exchange)'s status on Thursday, 02-May-2024 18:47:18 JST Jake Hildreth (acorn) :blacker_heart_outline: Jake Hildreth (acorn) :blacker_heart_outline:
      in reply to
      • André Polykanine
      • James Scholes

      @jscholes @menelion @JenMsft If you’re using PowerShell 7.4 in Windows Terminal (or any terminal application that supports the OSC52 ANSI escape sequence), the Set-Clipboard cmdlet does support piping remote output to the local clipboard via the -AsOSC52 parameter.

      You can even configure your PowerShell profile to automatically identify when you’re in a remote shell to automatically apply that parameter without you specifying it.

      Set-Clipboard Documentation: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/set-clipboard?view=powershell-7.4

      GitHub Issue that suggested the feature: https://github.com/PowerShell/PowerShell/issues/18116

      In conversation about a year ago permalink

      Attachments


      1. Domain not in remote thumbnail source whitelist: opengraph.githubassets.com
        Set-Clipboard -Remote with OSC52 · Issue #18116 · PowerShell/PowerShell
        Summary of the new feature / enhancement Set-Clipboard does not really work over SSH, as it always sets the clipboard of the target machine, not the host. This means that if you SSH e.g. from your ...
    • Embed this notice
      James Scholes (jscholes@dragonscave.space)'s status on Thursday, 02-May-2024 18:47:19 JST James Scholes James Scholes
      in reply to
      • André Polykanine

      @menelion It doesn't work in an interactive SSH session, because you'd be running that command in your remote shell. Even assuming the system you were connected to had a `clip` command, it wouldn't have access to your local clipboard. However, you could run one-off commands over SSH and have the session immediately terminate afterwards, and pipe that output to this. @JenMsft

      In conversation about a year ago permalink
    • Embed this notice
      André Polykanine (menelion@dragonscave.space)'s status on Thursday, 02-May-2024 18:47:20 JST André Polykanine André Polykanine
      in reply to

      @JenMsft I wonder if it works in SSH sessions. If yes, then I had been an idiot for at least four years to select and copy everything to Notepad for further review.

      In conversation about a year ago permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.