<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Nohup with scp in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/nohup-with-scp/m-p/4089309#M729905</link>
    <description>I could be wrong but it might be an old bug in portable SSH which was fixed, but some problems remain on HP-UX. See the last few comments about it here:&lt;BR /&gt;&lt;A href="https://bugzilla.mindrot.org/show_bug.cgi?id=52" target="_blank"&gt;https://bugzilla.mindrot.org/show_bug.cgi?id=52&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;A possible alternate solution for you to run this in the background would be to use certificates so that you do not have to input a password, then launch it with "at now". At will run your scp, and you can logout.</description>
    <pubDate>Sat, 20 Oct 2007 19:44:08 GMT</pubDate>
    <dc:creator>Olivier Masse</dc:creator>
    <dc:date>2007-10-20T19:44:08Z</dc:date>
    <item>
      <title>Nohup with scp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nohup-with-scp/m-p/4089306#M729902</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I would like to use nohup with scp command. I can't use public key auth but password. I run it this way:&lt;BR /&gt;&lt;BR /&gt;nohup scp /tmp/data.dbf user@host:tmp&lt;BR /&gt;user@host's password:&lt;BR /&gt;&lt;BR /&gt;After I deliver correct password the scp transmission starts. After that I put it to the background (Control-Z) and restart the transmission with fg %1. Files still keep &lt;BR /&gt;on being transferred. But as soon as I leave the session the scp job terminates. Why?&lt;BR /&gt;&lt;BR /&gt;I can't use &lt;BR /&gt;nohup scp /tmp/data.dbf user@host:tmp &amp;amp;&lt;BR /&gt;because then I have no password prompt.&lt;BR /&gt;&lt;BR /&gt;I also tried to use a script:&lt;BR /&gt;&lt;BR /&gt;====scp.sh=====&lt;BR /&gt;trap "" HUP&lt;BR /&gt;scp /tmp/data.dbf user@host:tmp&lt;BR /&gt;===============&lt;BR /&gt;&lt;BR /&gt;and run it as &lt;BR /&gt;nohup ./scp.sh &lt;BR /&gt;&lt;BR /&gt;but the problem still exists. After logout the transfer stops.&lt;BR /&gt;&lt;BR /&gt;The general question is: how can I keep scp session after logout on condition that I have to put the password at the beginning?&lt;BR /&gt;&lt;BR /&gt;I would appreciate any help.</description>
      <pubDate>Sat, 20 Oct 2007 12:11:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nohup-with-scp/m-p/4089306#M729902</guid>
      <dc:creator>wojtek75</dc:creator>
      <dc:date>2007-10-20T12:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Nohup with scp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nohup-with-scp/m-p/4089307#M729903</link>
      <description>If this is always a manual intervention and nohup doesn't work, you could try screen, it might work. If it's not available on your server, grab it from here:&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Sysadmin/screen-4.0.3/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Sysadmin/screen-4.0.3/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I haven't used this in years, but from what I remember, you need to run screen, start your scp, then detach with CTRL-A,D. Logout as you please. Then come back later, and reattach to your virtual terminal using "screen -r".&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 20 Oct 2007 14:22:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nohup-with-scp/m-p/4089307#M729903</guid>
      <dc:creator>Olivier Masse</dc:creator>
      <dc:date>2007-10-20T14:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: Nohup with scp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nohup-with-scp/m-p/4089308#M729904</link>
      <description>This is a production server and screen is not available and not allowed to be install. I need another solution.</description>
      <pubDate>Sat, 20 Oct 2007 15:24:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nohup-with-scp/m-p/4089308#M729904</guid>
      <dc:creator>wojtek75</dc:creator>
      <dc:date>2007-10-20T15:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Nohup with scp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nohup-with-scp/m-p/4089309#M729905</link>
      <description>I could be wrong but it might be an old bug in portable SSH which was fixed, but some problems remain on HP-UX. See the last few comments about it here:&lt;BR /&gt;&lt;A href="https://bugzilla.mindrot.org/show_bug.cgi?id=52" target="_blank"&gt;https://bugzilla.mindrot.org/show_bug.cgi?id=52&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;A possible alternate solution for you to run this in the background would be to use certificates so that you do not have to input a password, then launch it with "at now". At will run your scp, and you can logout.</description>
      <pubDate>Sat, 20 Oct 2007 19:44:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nohup-with-scp/m-p/4089309#M729905</guid>
      <dc:creator>Olivier Masse</dc:creator>
      <dc:date>2007-10-20T19:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: Nohup with scp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nohup-with-scp/m-p/4089310#M729906</link>
      <description>cat &amp;lt;</description>
      <pubDate>Sat, 20 Oct 2007 21:44:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nohup-with-scp/m-p/4089310#M729906</guid>
      <dc:creator>D Block</dc:creator>
      <dc:date>2007-10-20T21:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Nohup with scp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nohup-with-scp/m-p/4089311#M729907</link>
      <description>Olivier,&lt;BR /&gt;&lt;BR /&gt;which part of the suggested link you are suggest? I can't find your point. And certificates are unable to use in my case.&lt;BR /&gt;&lt;BR /&gt;D_Block,&lt;BR /&gt;&lt;BR /&gt;scp does not readm from stdin.&lt;BR /&gt;&lt;BR /&gt;Still waiting for any solution. What about trapping HUP? Any working example would do.</description>
      <pubDate>Sun, 21 Oct 2007 04:26:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nohup-with-scp/m-p/4089311#M729907</guid>
      <dc:creator>wojtek75</dc:creator>
      <dc:date>2007-10-21T04:26:27Z</dc:date>
    </item>
  </channel>
</rss>

