Turn Command Lines into Web Apps

Originalartikel

Backup

<html> <p>Even if you like using a graphical user interface, you can probably agree that writing a graphical program is usually harder than writing an old-fashioned text-based program. Putting that GUI into an online format means even more to think about. [Adam Kewley] has the answer to that problem: <a href=„https://github.com/adamkewley/jobson“ target=„_blank“>Jobson</a>. As you can see in the video below, the program is a web server that runs command line programs as jobs.</p> <p>Simply write a&#160;YAML file to describe the program&#8217;s inputs and outputs and&#160;Jobson will create input fields for arguments and display the output in a web page. Any files the program creates are available to download. Basically any command line program can be quickly and easily pulled into one web interface to rule them.</p> <p>If a program takes a long time to run, Jobson&#160;will let you switch away and then later resume looking at the output. You can also abort a job or look at the arguments it received. Jobson can also authenticate users with several different methods to prevent just anyone from executing jobs.</p> <p>If you really want to write a graphical program, try <a href=„https://hackaday.com/2016/07/08/join-the-gui-generation-qtcreator/“>QTCreator</a>. Or, you can get <a href=„https://hackaday.com/2017/11/09/linux-fu-system-administration-made-easier/“>a shell in a web browser</a> if you want to go that route. But this is the smoothest method we&#8217;ve seen for gathering command line programs into one place for monitoring and control. Neat!</p> <p><iframe class=„youtube-player c2“ type=„text/html“ width=„800“ height=„480“ src=„https://www.youtube.com/embed/W9yfpqWiyUg?version=3&amp;rel=1&amp;fs=1&amp;autohide=2&amp;showsearch=0&amp;showinfo=1&amp;iv_load_policy=1&amp;wmode=transparent“ allowfullscreen=„true“>[embedded content]</iframe></p> </html>