MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

    如何实现程序崩溃自动重启?

    使用交流
    3
    4
    189
    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.
    • 2
      233YUZI last edited by

      如题

      1 Reply Last reply Reply Quote 0
      • RainChan
        RainChan 摸鱼 last edited by

        写个死循环shell就行

        2 1 Reply Last reply Reply Quote 0
        • Karlatemp
          Karlatemp last edited by

          #!/usr/bin/env bash
          
          while true
          do
          
          echo a
          
          done
          
          @echo off
          :loopStart
          
          echo a
          
          goto loopStart
          
          1 Reply Last reply Reply Quote 0
          • 2
            233YUZI @RainChan last edited by

            @rainchan 我是那种直接程序自己关闭了

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact