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
    ShadSterling (shadsterling@mastodon.social)'s status on Saturday, 24-May-2025 17:01:06 JST ShadSterling ShadSterling
    in reply to
    • Julia Evans

    @b0rk @endrift only if there’s a way to capture the use of the file handle and set up what amounts to an open-on-use mechanism. I think someone in another branch of the thread mentioned a hypothetical virtual file handle that would work similarly

    In conversation about a year ago from mastodon.social permalink
    • Embed this notice
      Ryan Castellucci (they/them) :nonbinary_flag: (ryanc@infosec.exchange)'s status on Saturday, 24-May-2025 17:01:06 JST Ryan Castellucci (they/them) :nonbinary_flag: Ryan Castellucci (they/them) :nonbinary_flag:
      in reply to
      • Julia Evans

      @ShadSterling @b0rk @endrift Definitely possible, open an anonymous pipe for the command running under sudo to feed, then open the output file after. The "sponge" command (part of moreutils) does something like this to allow rewriting files, e.g. sort file | sponge file.

      That said, it is much simpler to just open the file and pass the descriptor.

      In conversation about a year ago permalink
    • Embed this notice
      Julia Evans (b0rk@social.jvns.ca)'s status on Saturday, 24-May-2025 17:01:08 JST Julia Evans Julia Evans

      @endrift hmm do you think it would be possible for the shell to open the file *after* the program starts?

      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.