<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 26, 2015 at 9:55 AM, Octavian Rasnita <span dir="ltr">&lt;<a href="mailto:orasnita@gmail.com" target="_blank">orasnita@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><u></u>





<div bgcolor="#ffffff">
<div><font size="2" face="Arial">When I connect to Linux servers using SSH and run 
the programs using </font></div>
<div><font size="2" face="Arial">perl <a href="http://program.pl" target="_blank">program.pl</a> &gt; something.log 2&gt;&amp;1 
&amp;</font></div>
<div><font size="2" face="Arial">then I can use the command exit to close the SSH 
console but the program continues to run.</font></div>
<div><font size="2" face="Arial">I remember that in past I needed to use nohup, but 
in last years I didn&#39;t need it anymore.</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial">Is the SSH connection a special case but it doesn&#39;t 
work when using a real bash console directly?</font></div></div></blockquote><div><br></div><div>Sounds like the huponexit is not set in your shell:</div><div><a href="http://stackoverflow.com/questions/21294283/when-did-hup-stop-getting-sent-and-what-can-i-do-about-it">http://stackoverflow.com/questions/21294283/when-did-hup-stop-getting-sent-and-what-can-i-do-about-it</a></div><div><br></div><div>/L</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div bgcolor="#ffffff"><span class=""><font color="#888888">
<div><font size="2" face="Arial"></font> </div>
<div>--Octavian<br></div></font></span><div><div class="h5">
<blockquote style="padding-left:5px;margin-left:5px;border-left-color:rgb(0,0,0);border-left-width:2px;border-left-style:solid;padding-right:0px;margin-right:0px">
  <div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10pt;line-height:normal;font-family:arial">----- Original Message ----- </div>
  <div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10pt;line-height:normal;font-family:arial;background:rgb(228,228,228)"><b>From:</b> 
  <a title="lenjaffe@jaffesystems.com" href="mailto:lenjaffe@jaffesystems.com" target="_blank">Len 
  Jaffe</a> </div>
  <div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10pt;line-height:normal;font-family:arial"><b>To:</b> <a title="kieren@diment.org" href="mailto:kieren@diment.org" target="_blank">kieren@diment.org</a> ; <a title="catalyst@lists.scsys.co.uk" href="mailto:catalyst@lists.scsys.co.uk" target="_blank">The 
  elegant MVC web framework</a> </div>
  <div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10pt;line-height:normal;font-family:arial"><b>Sent:</b> Monday, October 26, 2015 5:13 
  AM</div>
  <div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10pt;line-height:normal;font-family:arial"><b>Subject:</b> Re: [Catalyst] Keep Plack -r 
  working when commandline closed...?</div>
  <div><font size="2" face="Arial"></font><br></div>
  <div dir="ltr">&amp; just backgrounds a job. If you close the terminal, you lose 
  job control.
  <div>If you use tmux, you can close the terminal, but leave the session 
  running, and reattach to the session later. </div>
  <div><br></div>
  <div>It is well work looking into.</div></div>
  <div class="gmail_extra"><br>
  <div class="gmail_quote">On Sat, Oct 24, 2015 at 1:29 AM, Kieren Diment <span dir="ltr">&lt;<a href="mailto:diment@gmail.com" target="_blank">diment@gmail.com</a>&gt;</span> wrote:<br>
  <blockquote class="gmail_quote" style="padding-left:1ex;margin:0px 0px 0px 0.8ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">
    <div dir="ltr">Tmux is the poor man&#39;s deployment pathway ;).  I use it to 
    keep long running jobs going between logins a lot too, as well as for having 
    an editor in the right place from where I last left off.  All round a 
    primo useful tool.  Also handy for persistent IRC connections 
    etc.<br></div>
    <div>
    <div>
    <div class="gmail_extra"><br>
    <div class="gmail_quote">On Sat, Oct 24, 2015 at 3:24 PM, Andrew <span dir="ltr">&lt;<a href="mailto:catalystgroup@unitedgames.co.uk" target="_blank">catalystgroup@unitedgames.co.uk</a>&gt;</span> wrote:<br>
    <blockquote class="gmail_quote" style="padding-left:1ex;margin:0px 0px 0px 0.8ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><u></u>
      <div bgcolor="#ffffff">
      <div><font size="2">A further search online,</font></div>
      <div><font size="2">throws up that screen and tmux can be useful if the app 
      you want to run in the background needs input now and 
      again.</font></div>
      <div><font size="2"></font> </div>
      <blockquote style="padding-left:5px;margin-left:5px;border-left-color:rgb(0,0,0);border-left-width:2px;border-left-style:solid;padding-right:0px;margin-right:0px"><span>
        <div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10pt;line-height:normal;font-family:arial">----- Original Message ----- </div>
        <div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10pt;line-height:normal;font-family:arial;background:rgb(228,228,228)"><b>From:</b> <a title="catalystgroup@unitedgames.co.uk" href="mailto:catalystgroup@unitedgames.co.uk" target="_blank">Andrew</a> 
        </div>
        <div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10pt;line-height:normal;font-family:arial"><b>To:</b> <a title="catalyst@lists.scsys.co.uk" href="mailto:catalyst@lists.scsys.co.uk" target="_blank">The elegant MVC 
        web framework</a> </div></span>
        <div>
        <div>
        <div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10pt;line-height:normal;font-family:arial"><b>Sent:</b> Saturday, October 24, 2015 
        5:06 AM</div>
        <div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10pt;line-height:normal;font-family:arial"><b>Subject:</b> Re: [Catalyst] Keep Plack 
        -r working when commandline closed...?</div>
        <div><br></div>
        <div><font size="2"></font> </div>
        <div><font size="2">Why is it better to use these over using an 
        &quot;&amp;&quot;....?</font></div>
        <div><font size="2"></font> </div>
        <div><font size="2">Or are you simply recommending them generally, due to 
        their usefulness all round?</font></div>
        <div><font size="2"></font> </div>
        <div><font size="2">Yours,</font></div>
        <div><font size="2">Andrew.</font></div>
        <div><font size="2"></font> </div>
        <blockquote style="padding-left:5px;margin-left:5px;border-left-color:rgb(0,0,0);border-left-width:2px;border-left-style:solid;padding-right:0px;margin-right:0px">
          <div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10pt;line-height:normal;font-family:arial">----- Original Message ----- </div>
          <div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10pt;line-height:normal;font-family:arial;background:rgb(228,228,228)"><b>From:</b> <a title="diment@gmail.com" href="mailto:diment@gmail.com" target="_blank">Kieren Diment</a> </div>
          <div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10pt;line-height:normal;font-family:arial"><b>To:</b> <a title="catalyst@lists.scsys.co.uk" href="mailto:catalyst@lists.scsys.co.uk" target="_blank">The elegant MVC 
          web framework</a> </div>
          <div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10pt;line-height:normal;font-family:arial"><b>Sent:</b> Friday, October 23, 2015 
          10:48 PM</div>
          <div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10pt;line-height:normal;font-family:arial"><b>Subject:</b> Re: [Catalyst] Keep 
          Plack -r working when commandline closed...?</div>
          <div><font size="2"></font><font size="2"></font><br></div>
          <div dir="ltr">Tmux is generally newer and easier to use than screen, 
          highly recommended.<br></div>
          <div class="gmail_extra"><font size="2"></font><font size="2"></font><font size="2"></font><br>
          <div class="gmail_quote">On Sat, Oct 24, 2015 at 7:41 AM, Len Jaffe 
          <span dir="ltr">&lt;<a href="mailto:lenjaffe@jaffesystems.com" target="_blank">lenjaffe@jaffesystems.com</a>&gt;</span> wrote:<br>
          <blockquote class="gmail_quote" style="padding-left:1ex;margin:0px 0px 0px 0.8ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">
            <div dir="ltr">I&#39;d still consider using screen or tmux...</div>
            <div class="gmail_extra">
            <div>
            <div><font size="2"></font><font size="2"></font><font size="2"></font><font size="2"></font><br>
            <div class="gmail_quote">On Fri, Oct 23, 2015 at 1:48 PM, Andrew <span dir="ltr">&lt;<a href="mailto:catalystgroup@unitedgames.co.uk" target="_blank">catalystgroup@unitedgames.co.uk</a>&gt;</span> 
            wrote:<br>
            <blockquote class="gmail_quote" style="padding-left:1ex;margin:0px 0px 0px 0.8ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">Turns 
              out it&#39;s super easy to run it in the background, =).<br><br>You 
              just add &quot;&amp;&quot; to the end of the commandline, =D.<br><br>^_^ Am 
              learning these little server tricks, ;-).<br><br>[Tweeted 
              Tatsuhiko Miyagawa of Plack fame, who was kind enough to 
              promptly<br>respond, with this little gem, =D. 
              Yay!]<br><br>Yours,<br>Andrew.<br><span><br><br>----- Original 
              Message -----<br>From: &quot;Trevor Leffler&quot; &lt;<a href="mailto:tleffler@uw.edu" target="_blank">tleffler@uw.edu</a>&gt;<br>To: &quot;The elegant MVC web 
              framework&quot; &lt;<a href="mailto:catalyst@lists.scsys.co.uk" target="_blank">catalyst@lists.scsys.co.uk</a>&gt;<br>Sent: Friday, 
              October 23, 2015 4:28 PM<br>Subject: Re: [Catalyst] Keep Plack -r 
              working when commandline closed...?<br><br><br></span>
              <div>
              <div>What about wrapping your shell session with screen?<br><br>$ 
              man screen<br><br>--Trevor<br><br>On 10/23/2015 08:21 AM, Andrew 
              wrote:<br>&gt;<br>&gt; I&#39;ve ended up using Plackup to start the 
              catalyst app&#39;s psgi script (still<br>&gt; via fast cgi),<br>&gt; 
              and I&#39;m using -r to indicate it should watch for changes, and 
              reload the<br>&gt; server when changes are 
              detected.<br>&gt;<br>&gt; It does this fine, as long as my 
              commandline terminal is still open.<br>&gt; The moment I close it, 
              the server continues to run, yet any watching for<br>&gt; changes, 
              killing, and restarting no longer happens (as far as I can 
              tell).<br>&gt;<br>&gt; Is there any way to get Plack&#39;s scripts 
              that watch and reload (i.e.<br>&gt; Restarter.pm, etc), to 
              continue to run after I close OSX&#39;s terminal window<br>/<br>&gt; 
              end the SSH session?<br>&gt;<br>&gt;<br>&gt; Many thanks for any 
              insights offered,<br>&gt;<br>&gt; Yours,<br>&gt; 
              Andrew.<br>&gt;<br>&gt;<br>&gt; 
              _______________________________________________<br>&gt; List: <a href="mailto:Catalyst@lists.scsys.co.uk" target="_blank">Catalyst@lists.scsys.co.uk</a><br>&gt; Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" rel="noreferrer" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>&gt; 
              Searchable archive:<br><a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" rel="noreferrer" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>&gt; 
              Dev site: <a href="http://dev.catalyst.perl.org/" rel="noreferrer" target="_blank">http://dev.catalyst.perl.org/</a><br>&gt;<br><br>_______________________________________________<br>List: 
              <a href="mailto:Catalyst@lists.scsys.co.uk" target="_blank">Catalyst@lists.scsys.co.uk</a><br>Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" rel="noreferrer" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>Searchable 
              archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" rel="noreferrer" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>Dev 
              site: <a href="http://dev.catalyst.perl.org/" rel="noreferrer" target="_blank">http://dev.catalyst.perl.org/</a><br><br><br>_______________________________________________<br>List: 
              <a href="mailto:Catalyst@lists.scsys.co.uk" target="_blank">Catalyst@lists.scsys.co.uk</a><br>Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" rel="noreferrer" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>Searchable 
              archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" rel="noreferrer" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>Dev 
              site: <a href="http://dev.catalyst.perl.org/" rel="noreferrer" target="_blank">http://dev.catalyst.perl.org/</a><br></div></div></blockquote></div><br><br clear="all">
            <div><br></div></div></div><span><font color="#888888">-- <br>
            <div>
            <div dir="ltr">
            <div>
            <div dir="ltr">
            <div>
            <div dir="ltr">
            <div>Len Jaffe - Information Technology Smoke Jumper - <a href="mailto:lenjaffe@jaffesystems.com" target="_blank">lenjaffe@jaffesystems.com</a> </div>
            <div><a href="tel:614-404-4214" value="+16144044214" target="_blank">614-404-4214</a>    <a href="https://www.twitter.com/lenJaffe" target="_blank">@LenJaffe</a> 
             <a href="http://www.lenjaffe.com/" target="_blank">www.lenjaffe.com</a><br></div>
            <div>Host of <a href="http://www.meetup.com/techlifecolumbus/" target="_blank">Code Jam Columbus</a>  - <a href="https://www.twitter.com/CodeJamCMH" target="_blank">@CodeJamCMH</a></div>
            <div>
            <div>Curator of <a href="http://www.lenjaffe.com/AdventPlanet/" target="_blank">Advent Planet</a> - An Aggregation of Online Advent 
            Calendars. 
            <div><br></div></div></div></div></div></div></div></div></div></font></span></div><br>_______________________________________________<br>List: 
            <a href="mailto:Catalyst@lists.scsys.co.uk" target="_blank">Catalyst@lists.scsys.co.uk</a><br>Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" rel="noreferrer" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>Searchable 
            archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" rel="noreferrer" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>Dev 
            site: <a href="http://dev.catalyst.perl.org/" rel="noreferrer" target="_blank">http://dev.catalyst.perl.org/</a><br><br></blockquote></div><br></div>
          <p></p>
          <hr>

          <p></p>_______________________________________________<br>List: <a href="mailto:Catalyst@lists.scsys.co.uk" target="_blank">Catalyst@lists.scsys.co.uk</a><br>Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>Searchable 
          archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>Dev 
          site: <a href="http://dev.catalyst.perl.org/" target="_blank">http://dev.catalyst.perl.org/</a><br>
          <p></p></blockquote>
        <p></p>
        <hr>

        <p></p>_______________________________________________<br>List: <a href="mailto:Catalyst@lists.scsys.co.uk" target="_blank">Catalyst@lists.scsys.co.uk</a><br>Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>Searchable 
        archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>Dev 
        site: <a href="http://dev.catalyst.perl.org/" target="_blank">http://dev.catalyst.perl.org/</a><br>
        <p></p></div></div></blockquote></div><br>_______________________________________________<br>List: 
      <a href="mailto:Catalyst@lists.scsys.co.uk" target="_blank">Catalyst@lists.scsys.co.uk</a><br>Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" rel="noreferrer" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>Searchable 
      archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" rel="noreferrer" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>Dev 
      site: <a href="http://dev.catalyst.perl.org/" rel="noreferrer" target="_blank">http://dev.catalyst.perl.org/</a><br><br></blockquote></div><br></div></div></div><br>_______________________________________________<br>List: 
    <a href="mailto:Catalyst@lists.scsys.co.uk" target="_blank">Catalyst@lists.scsys.co.uk</a><br>Listinfo: 
    <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" rel="noreferrer" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>Searchable 
    archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" rel="noreferrer" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>Dev 
    site: <a href="http://dev.catalyst.perl.org/" rel="noreferrer" target="_blank">http://dev.catalyst.perl.org/</a><br><br></blockquote></div><br><br clear="all">
  <div><br></div>-- <br>
  <div>
  <div dir="ltr">
  <div>
  <div dir="ltr">
  <div>
  <div dir="ltr">
  <div>Len Jaffe - Information Technology Smoke Jumper - <a href="mailto:lenjaffe@jaffesystems.com" target="_blank">lenjaffe@jaffesystems.com</a> </div>
  <div><a href="tel:614-404-4214" value="+16144044214" target="_blank">614-404-4214</a>    <a href="https://www.twitter.com/lenJaffe" target="_blank">@LenJaffe</a>  <a href="http://www.lenjaffe.com/" target="_blank">www.lenjaffe.com</a><br></div>
  <div>Host of <a href="http://www.meetup.com/techlifecolumbus/" target="_blank">Code Jam Columbus</a>  - <a href="https://www.twitter.com/CodeJamCMH" target="_blank">@CodeJamCMH</a></div>
  <div>
  <div>Curator of <a href="http://www.lenjaffe.com/AdventPlanet/" target="_blank">Advent Planet</a> - An Aggregation of Online Advent Calendars.
  <div><br></div></div></div></div></div></div></div></div></div></div>
  <p>
  </p><hr>

  <p></p>_______________________________________________<br>List: 
  <a href="mailto:Catalyst@lists.scsys.co.uk" target="_blank">Catalyst@lists.scsys.co.uk</a><br>Listinfo: 
  <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>Searchable 
  archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>Dev site: 
  <a href="http://dev.catalyst.perl.org/" target="_blank">http://dev.catalyst.perl.org/</a><br><p></p></blockquote></div></div></div>
<br>_______________________________________________<br>
List: <a href="mailto:Catalyst@lists.scsys.co.uk">Catalyst@lists.scsys.co.uk</a><br>
Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" rel="noreferrer" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>
Searchable archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" rel="noreferrer" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>
Dev site: <a href="http://dev.catalyst.perl.org/" rel="noreferrer" target="_blank">http://dev.catalyst.perl.org/</a><br>
<br></blockquote></div><br></div></div>