Re: RCP from VMS to Unix





On Thu, 14 May 2009, Steven Schweda wrote:

Jamie wrote:
I'm pretty fresh when it comes to OpenVMS,

Tip 1: Start with a TCPIP SHOW VERSION report.

SERVER> SHOW TCP VERSION
%DCL-W-IVKEYW, unrecognized keyword - check validity and spelling
\TCP\


I tried to get some info with

SERVER> SHOW VERSION /FULL


OpenVMS V7.1-2 on node SERVER 15-MAY-2009 08:58:50.93 Uptime 10 02:43:18
Digital Personal WorkStation




and I'm having an awful time
using RCP to recursively transfer files from a VMS host to a Unix server.

Perhaps it's just awful software. Or awful documentation.
Or some combination.

"Unix server" is not a very complete description of that
end, either.


It's actually FreeBSD 7.2. Sorry I know thats not quite Unix.




I can't seem to get recursion to work...it is skipping over the
directories:
[...]
I'm very confused here.

Perhaps it's just awful software. Or awful documentation.
Or some combination.

For some reason the Help pages and the
tutorials I've found have not worked for me. Can anyone shed some light on
what I'm doing incorrectly?

Using RCP at all? I'd try to avoid it. However, ...

Around here, HELP says:

RCP

/RECURSIVE

/RECURSIVE
/NORECURSIVE

Optional.

Recursively copies each subtree rooted at the directory you
specify in the UNIX file specification. For OpenVMS hosts,
specify [directory...] (with three trailing periods) in the file
specification instead of using this qualifier.

Clear as mud to me.



Just because something is clear does not mean it's properly/thoroughly documented. As you can see from my post, I did specify the /RECURSIVE option in my command. Perhaps the documentation I have on my system is not in sync with the software thats running on it.




sol> pwd
/usr/users/sms

sol> ls -lR test
test:
total 0

alp $ show default
ALP$DKA0:[SMS.TEST]

SERVER> show default
USER:[JAMIE.TEST]



alp $ rcp [...] sol:test

SERVER> rcp [...] 192.168.0.4:test

%DCL-W-PARMDEL, invalid parameter delimiter - check use of special characters \.4\

okay...trying a variation then...

SERVER> rcp /USERNAME=jamie [...] 192.168.0.4::test
%RCP-E-OPENIN, error opening USER:[JAMIE.TEST...].; as input
-RMS-E-FNF, file not found

Hmmm...let's roll the dice again, this time adding /RECURSIVE:

SERVER> rcp /RECURSIVE /USERNAME=jamie [...] 192.168.0.4::test
%RCP-E-OPENIN, error opening USER:[JAMIE.TEST...].; as input
-RMS-E-FNF, file not found



Why on earth would it say the file is not found?? Clearly, I did "show default", and it says USER:[JAMIE.TEST], and, clearly, there is a file in JAMIE.TEST called TESTFILE.TXT:

Directory USER:[JOSTROWSKI.TEST]

TESTFILE.TXT;1



alp $

sol> ls -lR test
test:
total 2048
drwxr-x--x 3 sms users 512 May 15 00:15 a
-rwxr-x--- 1 sms users 8 May 15 00:14 a.a
drwxr-x--x 2 sms users 512 May 15 00:15 b
-rwxr-x--- 1 sms users 4 May 15 00:14 b.b
drwxr-x--x 2 sms users 512 May 15 00:15 c
-rwxr-x--- 1 sms users 816844 May 15 00:14 fred.txt
-rw-r----- 1 sms users 202126 May 15 00:14 fred.txt-gpg
-rwxr-x--- 1 sms users 1496 May 15 00:14 fred.zip
-rw-r----- 1 sms users 190 May 15 00:14 siz.c

test/a:
total 10
-rwxr-x--- 1 sms users 3 May 15 00:14 cre.tst
-rwxr-x--- 1 sms users 3 May 15 00:14 cre_z.tst
-rwxr-x--- 1 sms users 4 May 15 00:15 t1.cre
-rwxr-x--- 1 sms users 722 May 15 00:15 t2vx.zip
drwxr-x--x 2 sms users 512 May 15 00:15 xt

test/a/xt:
total 2
-rwxr-x--- 1 sms users 3 May 15 00:15 xt.xt

test/b:
total 2
-rwxr-x--- 1 sms users 5 May 15 00:15 bb.txt

test/c:
total 2
-rwxr-x--- 1 sms users 5 May 15 00:15 cc.txt
sol>

alp $ dire /date /prot /size [...]

Directory ALP$DKA0:[SMS.TEST]

A.A;3 1 14-FEB-2005 18:08:46.96 (RWED,RWED,RE,)
A.A;2 1 14-FEB-2005 18:08:15.53 (RWED,RWED,RE,)
A.DIR;1 1 16-SEP-2005 21:26:49.36 (RWE,RWE,RE,E)
B.B;2 1 14-FEB-2005 18:08:22.37 (RWED,RWED,RE,)
B.DIR;1 1 16-SEP-2005 21:26:49.50 (RWE,RWE,RE,E)
C.DIR;1 1 16-SEP-2005 21:26:49.59 (RWE,RWE,RE,E)
FRED.TXT;1 1596 22-DEC-2007 00:09:21.02 (RWED,RWED,RE,)
FRED.TXT-GPG;1 395 21-DEC-2007 23:59:50.65 (RWD,RWD,R,)
FRED.ZIP;1 3 1-MAR-2006 06:55:03.48 (RWED,RWED,RE,)
SIZ.C;2 1 4-FEB-2009 11:15:53.98 (RWD,RWD,R,)
SIZ.C;1 1 4-FEB-2009 11:15:41.78 (RWD,RWD,R,)

Total of 11 files, 2002 blocks.

Directory ALP$DKA0:[SMS.TEST.A]

CRE.TST;1 1 16-SEP-2005 21:38:17.85 (RWED,RWED,RE,)
CRE_Z.TST;1 1 16-SEP-2005 22:22:51.34 (RWED,RWED,RE,)
T1.CRE;1 1 16-SEP-2005 21:29:00.89 (RWED,RWED,RE,)
T2VX.ZIP;1 2 17-SEP-2005 00:43:36.17 (RWED,RWED,RE,)
XT.DIR;1 1 3-NOV-2005 15:40:19.48 (RWE,RWE,RE,E)

Total of 5 files, 6 blocks.

Directory ALP$DKA0:[SMS.TEST.A.XT]

XT.XT;1 1 3-NOV-2005 15:40:28.81 (RWED,RWED,RE,)

Total of 1 file, 1 block.

Directory ALP$DKA0:[SMS.TEST.B]

BB.TXT;1 1 1-MAY-2008 14:57:25.77 (RWED,RWED,RE,)

Total of 1 file, 1 block.

Directory ALP$DKA0:[SMS.TEST.C]

CC.TXT;1 1 1-MAY-2008 14:57:33.66 (RWED,RWED,RE,)

Total of 1 file, 1 block.

Grand total of 5 directories, 19 files, 2011 blocks.
alp $

Looks vaguely similar to me. This worked, too:

alp $ show default
ALP$DKA0:[SMS]
alp $ rcp [.test...] sol:test

Adding /RECURSIVE seemed to be harmless (but not helpful).

Adapting UNIX software to VMS can require some serious
effort. When that's lacking on the vendor side, it may be
necessary for the victim to supply it. Sometimes more
UNIX-like thinking is required, sometimes more VMS-like
thinking is required. It's often hard to tell how much effort
was invested in any particular program. Thus, for example, a
scheme which works for RCP may fail for SCP. Be alert.

.



Relevant Pages

  • Re: Email Programming using System.Web.Mail
    ... With System.Web.Mail,, the book for the SmtpMail class says that if you do not specify a value for SmtpServer then it uses the local SMTP server. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Email Programming using System.Web.Mail
    ... configuration first but if that doesn't specify the appropriate ... configuration files, an exception would be thrown when you call the ... The moment I specify a valid server then it works: ... It will only connect to an 'up-line' SMTP ...
    (microsoft.public.dotnet.languages.vb)
  • Re: postfix cant send and receive mails (SOLVED) - resend
    ... Me neither --- I'm somewhat unhappy with the postfix documentation I ... The documentation says: "The SMTP server ... But what else do you specify in the table? ... That would indicate that no mail is delivered to virtual domains. ...
    (Debian-User)
  • Multiple Pointers, Xinput and thin clients (remote X)
    ... I have a thin client connecting to a X terminal ... server using XDMCP and gdm. ... # Module section -- this section is used to specify ... # the way multiple screens are organised. ...
    (comp.os.linux.x)