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
    Miakoda (hellomiakoda@pdx.social)'s status on Sunday, 07-Sep-2025 21:14:46 JST Miakoda Miakoda

    There seems to be no way to get #HomeAssistant to set off a bash script on another machine over ssh if that script takes more than 60 seconds to complete. This is very VERY frustrating.

    In conversation about 3 months ago from pdx.social permalink
    • Embed this notice
      Miakoda (hellomiakoda@pdx.social)'s status on Sunday, 07-Sep-2025 21:18:58 JST Miakoda Miakoda
      in reply to
      • Jari

      @vague How do I do that triggered by Home Assistant?

      In conversation about 3 months ago permalink
    • Embed this notice
      Jari (vague@social.linux.pizza)'s status on Sunday, 07-Sep-2025 21:18:59 JST Jari Jari
      in reply to

      @hellomiakoda run it in tmux or screen?

      In conversation about 3 months ago permalink
    • Embed this notice
      Daniel Lakeland (dlakelan@mastodon.sdf.org)'s status on Sunday, 07-Sep-2025 21:20:49 JST Daniel Lakeland Daniel Lakeland
      in reply to

      @hellomiakoda
      Send a message via MQTT and have the other machine listen for that message and fire off the script when received?

      In conversation about 3 months ago permalink
    • Embed this notice
      Miakoda (hellomiakoda@pdx.social)'s status on Sunday, 07-Sep-2025 21:20:49 JST Miakoda Miakoda
      in reply to
      • Daniel Lakeland

      @dlakelan I have no idea I could have a server listen for MQTT

      In conversation about 3 months ago permalink
    • Embed this notice
      Miakoda (hellomiakoda@pdx.social)'s status on Sunday, 07-Sep-2025 21:40:51 JST Miakoda Miakoda
      in reply to
      • Daniel Lakeland

      @dlakelan I just found another solution...
      First, using the ssh integration instead of the shell command integration.
      And second, instead of nohup and &, I sent the stdout to a text file. No idea why that worked. I was only trying to see how far in it was failing.

      In conversation about 3 months ago permalink
    • Embed this notice
      Daniel Lakeland (dlakelan@mastodon.sdf.org)'s status on Sunday, 07-Sep-2025 21:40:52 JST Daniel Lakeland Daniel Lakeland
      in reply to

      @hellomiakoda
      Theres a command line tool for mqtt messages, mqtt-cli. It can subscribe to a topic and will block until the message is received then print the message. So your shell script can loop on reading a message from a pipe and doing a thing. Basically a little shell script server. Does that help?

      In conversation about 3 months ago permalink
    • Embed this notice
      Miakoda (hellomiakoda@pdx.social)'s status on Sunday, 07-Sep-2025 21:49:21 JST Miakoda Miakoda
      in reply to
      • Daniel Lakeland

      @dlakelan I wonder if this is something weird with plextraktsync. The whole reason I went on this quest to get it to work this way is it wasn't working with cron. I wonder if I have the cron script output to file if it'll work.

      In conversation about 3 months ago permalink
    • Embed this notice
      Miakoda (hellomiakoda@pdx.social)'s status on Sunday, 07-Sep-2025 21:50:50 JST Miakoda Miakoda
      in reply to
      • Multi Purr Puss :verified:

      @platymew That was still failing

      In conversation about 3 months ago permalink
    • Embed this notice
      Multi Purr Puss :verified: (platymew@layer8.space)'s status on Sunday, 07-Sep-2025 21:50:51 JST Multi Purr Puss :verified: Multi Purr Puss :verified:
      in reply to

      @hellomiakoda perhaps you can run the script detached in the background, using the ampersand (&)?

      In conversation about 3 months ago permalink
    • Embed this notice
      Miakoda (hellomiakoda@pdx.social)'s status on Sunday, 07-Sep-2025 21:55:55 JST Miakoda Miakoda
      in reply to
      • Multi Purr Puss :verified:

      @platymew Weirdly I got it to work by changing
      nohup plextraktsync sync &
      to
      plextractsync sync >> stdout.txt

      I discovered that accidentally just trying to see how far along it was getting before timing out

      In conversation about 3 months ago permalink
    • Embed this notice
      Multi Purr Puss :verified: (platymew@layer8.space)'s status on Sunday, 07-Sep-2025 21:55:56 JST Multi Purr Puss :verified: Multi Purr Puss :verified:
      in reply to

      @hellomiakoda or perhaps a one-shot task scheduler, like a cronjob but immediate - isn't that what "at" does?

      Mistral small 3 says:
      echo "your_command_here" | at now

      In conversation about 3 months ago permalink
    • Embed this notice
      Miakoda (hellomiakoda@pdx.social)'s status on Monday, 08-Sep-2025 06:59:48 JST Miakoda Miakoda
      in reply to
      • Daniel Lakeland

      @dlakelan Cron is fine with everything else I put it in it 🤷♀️️

      In conversation about 3 months ago permalink
    • Embed this notice
      Daniel Lakeland (dlakelan@mastodon.sdf.org)'s status on Monday, 08-Sep-2025 06:59:49 JST Daniel Lakeland Daniel Lakeland
      in reply to

      @hellomiakoda

      cron normally captures output and mails it to root. but maybe there's no mail delivery infrastructure on the machine and cron doesn't like it?

      In conversation about 3 months 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.