- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Help with an scp command line appreciated
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
Forums
Discussions
Discussions
Discussions
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
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
01-13-2003 04:03 PM
01-13-2003 04:03 PM
cd /home/xfer
scp 192.168.0.40://backups/*.gz .
Pretty simple right. I have to type exit at the command line to get the transfer to start.
This is Red Hat Linux 7.3 on both ends and the same command line works without issue in HP-UX.
Generous points awarded for the command line that makes this work without user interventions.
The prompt I get requiring an exit command looks like this:
[root@telaviv bin]# ./copyprod
sh-2.05a#
How strange is this?
Steve
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2003 04:11 PM
01-13-2003 04:11 PM
SolutionYou're launching a sub-shell, and the script doesn't appear to be run correctly.
Apart from that, the 'scp' command shouldn't have two /'s after the :. Could cause some minor issues.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 05:32 AM
01-14-2003 05:32 AM
Re: Help with an scp command line appreciated
I will check it and get back to you.
Steve
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 05:35 AM
01-14-2003 05:35 AM
Re: Help with an scp command line appreciated
Lesson for the youngins in sysadmin. Sometimes it takes another pair of eyes to spot the problem.
Thanks.
Steve
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 05:36 AM
01-14-2003 05:36 AM
Re: Help with an scp command line appreciated
but the error you described *can* be caused by this ... So maybe it wasn't a c&p error :-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 05:49 AM
01-14-2003 05:49 AM
Re: Help with an scp command line appreciated
If I was using a gui or netterm to create the script its possible I didn't select the pound sign when cutting and pasting.
netterm can'd keep its colors straight when connected to a RH box so I rarely use it.
To maintain correct permissions, I generally copy a working script and then make changes. This means I got careless with the x key in vi.
DOH!
Steve
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com