PC - Is it possible to reboot automatically? (Through processing tool)

PC - Is it possible to reboot automatically? (Through processing tool)

Dear Professionals Hello. nice to meet you.

I want to code on an embedded PC base. As you know, there are many unexpected things.

Therefore, I want to reset the PC every certain time.  ** Is it possible to initialize PC through processing tool?**

Please confirm. Thank you.


  • edited May 2017 Answer ✓

    It depends on which OS you're running on. For Windows, you might be able to open (open(), or possible exec()) a shortcup that reboots the computer. For Mac, there might be a command line command to do it. I seriously doubt it is possible using P5.js, however.

  • edited May 2017 Answer ✓

    launch() or exec() -- probably exec.

    Your reboot shell script will need to have the privs to run, which could be a serious security risk.

    Embedded Windows, or Linux? For Win:

  • Dear jeremydouglass , Embedded Windows

  • I tried to proceed through shutdown.bat.

    Void setup () {
       Size (1200, 800);
       Launch ("shutdown.bat");
       Println ("ok");
    Void draw () {

    Why does not it work?

  • You can not even open .txt files.

    It is likely to be solved if we know only functions that can only be programmed.

  • Dear TfGuy44, Dear jeremydouglass

    Sorry, Sorry. Very thanks.

    I Resolved.


  • Answer ✓

    This is a prev post relevant to running commands: https://forum.processing.org/two/discussion/comment/88413/#Comment_88413


  • Dear kfrajer, How have you been?

    Every time I feel grateful.

    Resolved. Thanks for the reply.

  • Great! Good to hear you found a solution @Gwak

    I'm doing pretty good. Thxs for asking :)>-


  • edited May 2017

    @Gwak -- very glad you solved it.

    In case other embedded Windows users have the same problem, would you share the contents of your shutdown.bat so that they can see your complete solution?

  • @jeremydouglass


    Shutdown.bat is a program that restarts. I did this because it was not processing itself.

  • Right. What are the lines of batch script code inside shutdown.bat?

  • shutdown.exe -r

    r means 'windows restart'


Sign In or Register to comment.