<spanclass=navbar-toggler-icon></span></button><divclass="collapse navbar-collapse"id=navbarSupportedContent><ulclass="navbar-nav me-auto mb-2 mb-lg-0"><liclass=nav-item><ahref=/Hilbish/class=nav-link>Home</a></li><liclass=nav-item><ahref=/Hilbish/install/class=nav-link>Install</a></li><liclass=nav-item><ahref=/Hilbish/docs/class=nav-link>Docs</a></li></ul></div></div></nav></header><divclass="container py-3 row"><divclass=containerstyle=width:240px><divclass="p-3 col"><ulclass="nav nav-pills mb-auto collapse navbar-collapse"id=navbarSupportedContent><liclass=nav-item><ahref=/Hilbish/docs/class=nav-link><strong>Introduction</strong></a></li><liclass=nav-item><ahref=/Hilbish/docs/getting-started/class=nav-link><strong>Getting Started</strong></a></li><liclass=nav-item><ahref=/Hilbish/docs/faq/class=nav-link><strong>Frequently Asked Questions</strong></a></li><liclass=nav-item><ahref=/Hilbish/docs/features/class=nav-link><strong>Features</strong></a></li><ulstyle=list-style:none><liclass=nav-item><ahref=/Hilbish/docs/features/runner-mode/class=nav-link>Runner Mode</a></li></ul><liclass=nav-item><ahref=/Hilbish/docs/api/class=nav-link><strong>API</strong></a></li><ulstyle=list-style:none><liclass=nav-item><ahref=/Hilbish/docs/api/hilbish/hilbish.aliases/class=nav-link>Interface hilbish.aliases</a></li><liclass=nav-item><ahref=/Hilbish/docs/api/hilbish/hilbish.completions/class=nav-link>Interface hilbish.completions</a></li><liclass=nav-item><ahref=/Hilbish/docs/api/hilbish/hilbish.editor/class=nav-link>Interface hilbish.editor</a></li><liclass=nav-item><ahref=/Hilbish/docs/api/hilbish/hilbish.history/class=nav-link>Interface hilbish.history</a></li><liclass=nav-item><ahref=/Hilbish/docs/api/hilbish/hilbish.jobs/class=nav-link>Interface hilbish.jobs</a></li><liclass=nav-item><ahref=/Hilbish/docs/api/hilbish/hilbish.os/class=nav-link>Interface hilbish.os</a></li><liclass=nav-item><ahref=/Hilbish/docs/api/hilbish/hilbish.runner/class=nav-link>Interface hilbish.runner</a></li><liclass=nav-item><ahref=/Hilbish/docs/api/hilbish/hilbish.timers/class=nav-link>Interface hilbish.timers</a></li><liclass=nav-item><ahref=/Hilbish/docs/api/hilbish/hilbish.userdir/class=nav-link>Interface hilbish.userDir</a></li><liclass=nav-item><ahref=/Hilbish/docs/api/bait/class=nav-link>Module bait</a></li><liclass=nav-item><ahref=/Hilbish/docs/api/commander/class=nav-link>Module commander</a></li><liclass=nav-item><ahref=/Hilbish/docs/api/fs/class=nav-link>Module fs</a></li><liclass=nav-item><ahref=/Hilbish/docs/api/hilbish/class=nav-link>Module hilbish</a></li><liclass=nav-item><ahref=/Hilbish/docs/api/terminal/class=nav-link>Module terminal</a></li></ul></ul></div></div><divclass="p-3 col"><div><h1>Interface hilbish.jobs</h1><p><em>background job management<br></em></p><h3id=introduction>Introduction</h3><p>Manage interactive jobs in Hilbish via Lua.</p><p>Jobs are the name of background tasks/commands. A job can be started via
interactive usage or with the functions defined below for use in external runners.</p><h3id=object-properties>Object properties</h3><ul><li><code>cmd</code>: The user entered command string for the job.</li><li><code>running</code>: Whether the job is running or not.</li><li><code>id</code>: The ID of the job in the job table</li><li><code>pid</code>: The Process ID</li><li><code>exitCode</code>: The last exit code of the job.</li><li><code>stdout</code>: The standard output of the job. This just means the normal logs of the process.</li><li><code>stderr</code>: The standard error stream of the process. This (usually) includes error messages of the job.</li></ul><h3id=functions>Functions</h3><h4id=background>background()</h4><p>Puts a job in the background. This acts the same as initially running a job.</p><h4id=foreground>foreground()</h4><p>Puts a job in the foreground. This will cause it to run like it was