- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Nohup with scp
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2007 05:11 AM
тАО10-20-2007 05:11 AM
Nohup with scp
I would like to use nohup with scp command. I can't use public key auth but password. I run it this way:
nohup scp /tmp/data.dbf user@host:tmp
user@host's password:
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
on being transferred. But as soon as I leave the session the scp job terminates. Why?
I can't use
nohup scp /tmp/data.dbf user@host:tmp &
because then I have no password prompt.
I also tried to use a script:
====scp.sh=====
trap "" HUP
scp /tmp/data.dbf user@host:tmp
===============
and run it as
nohup ./scp.sh
but the problem still exists. After logout the transfer stops.
The general question is: how can I keep scp session after logout on condition that I have to put the password at the beginning?
I would appreciate any help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2007 07:22 AM
тАО10-20-2007 07:22 AM
Re: Nohup with scp
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/screen-4.0.3/
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".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2007 08:24 AM
тАО10-20-2007 08:24 AM
Re: Nohup with scp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2007 12:44 PM
тАО10-20-2007 12:44 PM
Re: Nohup with scp
https://bugzilla.mindrot.org/show_bug.cgi?id=52
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2007 02:44 PM
тАО10-20-2007 02:44 PM
Re: Nohup with scp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2007 09:26 PM
тАО10-20-2007 09:26 PM
Re: Nohup with scp
which part of the suggested link you are suggest? I can't find your point. And certificates are unable to use in my case.
D_Block,
scp does not readm from stdin.
Still waiting for any solution. What about trapping HUP? Any working example would do.