- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- RCP Problems...
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
12-14-2004 12:37 AM
12-14-2004 12:37 AM
RCP Problems...
When I'm connected as root to an HPUX server and try to copy a file from a OpenVms server through a command like this (example only):
rcp a.lis oracle@server-vms:'"des02:[user.ssb.ssbrmb]a.lis"'
I can copy the file, but not as the file really is...
For example... The structure of the file "a.lis" is this:
xxxxxxaabbccff
aaabbbgggxxxxx
yyyuuurtrttddd
And when I copy it to the Unix trhough RCP, the structure of the file is changed to one line only:
xxxxxxaabbccffaaabbbgggxxxxxyyyuuurtrttddd
Do you understand??
What am I doing wrong in this command??
Someone can help Me?
Thanks,
Rafael M. Braga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2004 12:45 AM
12-14-2004 12:45 AM
Re: RCP Problems...
I assume that this is a text file.
Do an hex dump of an HP-UX file and then an OpenVMS file and see what the end of lines look like:
$ xd -xc file
0000000 3131 0a31 3169 0a50 544f 0a62 696e 0a65
1 1 \n 1 1 i \n P T O \n b i n \n e
0000010 6d63 0a66 696c 650a 6b73 6872 632e 7478
m c \n f i l e \n k s h r c . t x
0000020 740a 6e65 7762 696e 0a70 726f 6669 6c65
t \n n e w b i n \n p r o f i l e
0000030 2e74 7874 0a74 6d70 0a00
. t x t \n t m p \n
0000039
HP-UX text files end in "0a" (\n).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2004 01:58 AM
12-14-2004 01:58 AM
Re: RCP Problems...
since I have no VMS experience at all I think I'm not in a position to reply to this thread.
But I thought the problem is a more general conversion problem.
In the first place I would expect that such conversions being handled by your rcp client silently behind the scenes.
Have you consulted its documentation for any special options/arguments/settings etc.?
If you cannot work it out that way, how about piping the file through a converter like dd?
Sorry, I even don't know if there exists the notion of pipes and utilities such as dd on VMS.
If I used Unix sysntax I would fancy something like this
remsh oracle@server-vms dd if=a.lis conv=unblock | cat > /some_path/some_file
Refer to the dd manpage for the various conversion options.
Maybe you could use Perl for your task?
I hear there are ports for VMS as well.
If so have a look at these modules for instance:
perldoc File::Spec::VMS
perldoc File::Copy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2004 11:45 AM
12-15-2004 11:45 AM
Re: RCP Problems...
To upload to OpenVMS server:
$ ux2dos file > file.vms
$ rcp file.vms oracle@vms:file
To download from OpenVMS server:
$ rcp oracle@vms:file file.vms
$ dos2ux file.vms > file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2005 11:58 PM
02-14-2005 11:58 PM