Operating System - OpenVMS
1748169 Members
4219 Online
108758 Solutions
New Discussion юеВ

Re: Scp to Solarise node

 
Kumar_Sanjay
Regular Advisor

Scp to Solarise node

We are sending some SCP file from VMS to SUN node.
we are able to do SCP sucessfully but unable to put file in Upper case. looks like my syntex is work.. any one please help me,

scp "EXTRACT.CSV" userid1@sunsystem1.cop.net:"/app/tei1/BKP/INPUTS/AP/""TEST.CSV"

We can able to transfer the file.. but remort end we are receiveing the file with "
Exam "TEST.CSV

could any one please tell me how to remove " ?
12 REPLIES 12
Steven Schweda
Honored Contributor

Re: Scp to Solarise node

> could any one please tell me how to remove " ?

Did you try removing the "" before
'TEST.CSV'?

scp "EXTRACT.CSV" userid1@sunsystem1.cop.net:"/app/tei1/BKP/INPUTS/AP/TEST.CSV"

DCL thinks that "AB""CD" is really
AB"CD
Kumar_Sanjay
Regular Advisor

Re: Scp to Solarise node

Steven, How i can remove the "
so it will be ABCD
Joseph Huber_1
Honored Contributor

Re: Scp to Solarise node

[How i can remove the "]

First of all remove the double "" from the scp command.

If the question is how to remove the " on the Unix side:
mv '"TEST.CSV' TEST.CSV
http://www.mpp.mpg.de/~huber
Kumar_Sanjay
Regular Advisor

Re: Scp to Solarise node

Did you try removing the "" before
'TEST.CSV'?
This method is transferring file name as 'TEST.CSV

scp "EXTRACT.CSV" userid1@sunsystem1.cop.net:"/app/tei1/BKP/INPUTS/AP/TEST.CSV"
I tested before, it will recognize entire path as directory and hence transfer fail
Kumar_Sanjay
Regular Advisor

Re: Scp to Solarise node

Joseph,

1) The Path is case sensative so i must put " "
otherwise it say invalid path.

userid1@sunsystem1.cop.net:"/app/tei1/BKP/INPUTS/AP/"TEST.CSV


if i transfer, it is sucessfull but lowercase file name in Unix system.


Now i want to trasnfer the file as upper case as well.


Kumar_Sanjay
Regular Advisor

Re: Scp to Solarise node

Joseph,

1) The Path is case sensitive so i must put " "
otherwise it say invalid path.

userid1@sunsystem1.cop.net:"/app/tei1/BKP/INPUTS/AP/"TEST.CSV


if I transfer, it is successful but lowercase file name in Unix system.


Now I want to transfer the file as upper case as well."
Steven Schweda
Honored Contributor

Re: Scp to Solarise node

> [...] from VMS to SUN node.

What, exactly, are we dealing with here?

tcpip show version

uname -a
ssh -V

> I tested before, it will recognize entire
> path as directory and hence transfer fail

What, exactly, does that mean? As usual,
showing actual commands with their actual
output can be more helpful than vague
descriptions or interpretations.

Around here:

alp $ dire wd.c;

Directory ALP$DKC0:[SMS.ITRC]

wd.c;20

Total of 1 file.

alp $ scp wd.c sms@sol:"/usr/users/sms/UC_DIR/WD.C"
wd.c | 1.1kB | 1.1 kB/s | TOC: 00:00:01 | 100%

alp $ ssh -l sms sol "ls -l /usr/users/sms/UC_DIR"
Authentication successful.

total 4
-rwxr-xr-- 1 sms users 1141 Jun 8 01:57 WD.C

alp $ tcpip show version

HP TCP/IP Services for OpenVMS Alpha Version V5.6 - ECO 5
on a COMPAQ Professional Workstation XP1000 running OpenVMS V8.3

sol# uname -a
SunOS sol 5.10 Generic_141444-09 sun4u sparc sun4u

sol# ssh -V
Sun_SSH_1.1.2, SSH protocols 1.5/2.0, OpenSSL 0x0090704f
Joseph Huber_1
Honored Contributor

Re: Scp to Solarise node

Sanjay,
I think reading the VMS user and DCL dictionary manual may help to understand, what double double quotes within a quoted string mean.

The simple fact -what Stevens example shows- is:
put the whole remote file specification in string quotes, not only the path.
OR, if Your parse_stayle is EXTENDED, just specify the output path , leaving off the file-name, then the output name will be identical to the local one:

scp EXTRACT.CSV userid1@sunsystem1.cop.net:"/app/tei1/BKP/INPUTS/AP/"
http://www.mpp.mpg.de/~huber
Joseph Huber_1
Honored Contributor

Re: Scp to Solarise node

And by the way, in my environment there is no need to put anything in string quotes at all:

MPIW10_HUB>scp Test.CSV pclhec01:tmp/
Test.CSV | 5B | 0.0 kB/s | TOC: 00:00:01 | 100%

MPIW10_HUB>
MPIW10_HUB>ssh pclhec01 ls tmp/Test.CSV
Authentication successful.
tmp/Test.CSV

My environment:
Parse Style: Extended
VMS 7.3-1 , TCPIP 5.4

(and don't know if it is important, the DECC$ feature logicals are set as if DECC$UNIX_LEVEL=30 in later versions of VMS.)
http://www.mpp.mpg.de/~huber