1834508 Members
2397 Online
110068 Solutions
New Discussion

remote copy file

 
SOLVED
Go to solution
chad_c
Super Advisor

remote copy file

We are attempting to remote copy (rcp) a sys image file created from a make_net_recovery. However, the file name has a colon in it and the rcp function thinks it is listing the host.

We could change the file name, however can any one shed some light on remote coping a file with a colon in it?

riovo# rcp 2006-12-15,15:43 txovo:/arc/sys_backups/rinnm5/
rcmd: 2006-12-15,15: Unknown host
riovo#

Regards,
Chad
5 REPLIES 5
Coolmar
Esteemed Contributor

Re: remote copy file

Did you try putting the file name in double quotes?

"txovo:/arc/sys_backups/rinnm5/"
James R. Ferguson
Acclaimed Contributor

Re: remote copy file

Hi Chad:

Any time you have characters special to the shell, you simply escape them. This is one way:

# rcp -p "file:with:colons" otherhost:/tmp

Regards!

..JRF...
chad_c
Super Advisor

Re: remote copy file

Yes. We did try that with the same results.

riovo# rcp -p "2006-12-15,15:43" txovo:/arc/sys_backups/rinnm5/
rcmd: 2006-12-15,15: Unknown host
riovo# rcp "2006-12-15,15:43" txovo:/arc/sys_backups/rinnm5/
rcmd: 2006-12-15,15: Unknown host
riovo#

Any other suggestions?

Regards,
Chad
spex
Honored Contributor
Solution

Re: remote copy file

Hi Chad,

You should really consider changing that filename, as it will no doubt cause other problems.

Chiding aside,

$ rcp /full/path/to/2006-12-15,15:43 txovo:/arc/sys_backups/rinnm5/

$ rcp ./2006-12-15,15:43 txovo:/arc/sys_backups/rinnm5/

both work on my test system.

PCS
chad_c
Super Advisor

Re: remote copy file

ta da....give that man a rabbit hat :)