title: select a file using lighttpn and start a shell script with the selected file as input
body: <p>How can I select a file on my local machine using an html file on my lighttpn webserver and start a shell script with the selected file as input? Lets say i have a script for unpacking an archive with unrar. First I visit the website on my webserver and choose the file. The "unpacking-script" should be started with the path to the file as input. Lets say the output is always the same. This is a very simple html file with file selection. But I don't know how to start the script with the file as input.</p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
  
  &lt;form action="upload_file.php" method="post"
  enctype="multipart/form-data"&gt;
  &lt;label for="file"&gt;Filename:&lt;/label&gt;
  &lt;input type="file" name="file" id="file" /&gt; 
  &lt;br /&gt;
  &lt;input type="submit" name="submit" value="Submit" /&gt;
  &lt;/form&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>