- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- rcp Files containing ":"
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
08-17-2004 09:48 PM
08-17-2004 09:48 PM
My Database creates compressed Backup-copies of the controlfiles every hour. The filename looks like control.ctl-18.08.04-11:02:01.Z
My problem is when I try to rcp this file, rcp recognizes the part before the : as a hostname and thus fails.
I tried some variants, but these didnt't work either
I use rcp create copies of the (important) controlfiles an archivelogs on another System.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2004 09:54 PM
08-17-2004 09:54 PM
Re: rcp Files containing ":"
sks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2004 09:55 PM
08-17-2004 09:55 PM
Re: rcp Files containing ":"
try to use double quotes:
rcp "control.ctl-18.08.04-11:02:01.Z" ...
extract from "man rcp"
Shell metacharacters in
remote paths can be quoted with backslash (\), single quotes (''), or
double quotes (""), so that they will be interpreted remotely.
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2004 10:16 PM
08-17-2004 10:16 PM
Re: rcp Files containing ":"
rcp "control.ctl-18.08.04-11:02:01.Z" target:/archivelogs
rcp 'control.ctl-18.08.04-11:02:01.Z' target:/archivelogs
rcp control.ctl-18.08.04-11\:02\:01.Z target:/archivelogs
all of them give an error:
rcmd: control.ct-18.08.04-11: Unknown host
It looks as if rcp doesn't know about quoting the filename
Christian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2004 10:28 PM
08-17-2004 10:28 PM
Re: rcp Files containing ":"
rcp "control.ctl-18.08.04-11:02:01.Z" target:/archivelogs/"control.ctl-18.08.04-11:02:01.Z"
because the command extend your input and substitute the missing file name.
Or, if you can afford different names:
NEWNAME=$( echo $OLDNAME | tr ":" "_" )
rcp $OLDNAME target:/dest/$NEWNAME
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2004 10:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2004 10:41 PM
08-17-2004 10:41 PM
Re: rcp Files containing ":"
Bingo, Sanyay is right
rcp source:/logdir/"control.ctl-18.08.04-11:02:01.Z" target:/archivelogs/"control.ctl-18.08.04-11:02:01.Z"
works
Thanks guys
I was already thinking of a workaround with tar pipe and remsh ...
Christian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2004 10:42 PM
08-17-2004 10:42 PM
Re: rcp Files containing ":"
As sanjay has already pointed out about servername, this works perfectly fine for me.
# rcp servername:
Regards,