Operating System - OpenVMS
1826597 Members
3628 Online
109695 Solutions
New Discussion

Re: could please help me in sftp mulitple files

 
652
Advisor

could please help me in sftp mulitple files

i stried sftp by giving the following commnad, but it didn't work

sftp> mput fm*0035.txt
21 REPLIES 21
Joseph Huber_1
Honored Contributor

Re: could please help me in sftp mulitple files

Welcom to the VMS forum!

Would You mind to tell us, what does not work, how doesn't it work, which VMS version, which TCPIP software and version ?

Here on my ancient VMS 7.3-1 with TCPIP 5.4 it looks like:

sftp avmp01
Connecting to avmp01...
sftp> cd scratch/tmp
sftp> mput fw*.zip
Uploading fwAtlas-2.0.2.zip to /DISK$HUBER/HUBER/SCRATCH/tmp/fwAtlas-2.0.2.zip
fwAtlas-2.0.2.zip 100% 22KB 21.6KB/s 00:00
Uploading fwFSMAtlas-3.2.0.zip to /DISK$HUBER/HUBER/SCRATCH/tmp/fwFSMAtlas-3.2.0.zip
fwFSMAtlas-3.2.0.zip 100% 353KB 352.9KB/s 00:01

http://www.mpp.mpg.de/~huber
652
Advisor

Re: could please help me in sftp mulitple files

The VMS version i'm using is VMS 8.3-1H1

sftp2 id@apsp.com

sftp>cd /conv/Extracts
sftp> mput fm*_0035.txt
sftp> mput fmp_0035.txt
fmp_0035.txt | 1.3MB | 656.0 kB/s | ETA: 00:01:04 | 3%
652
Advisor

Re: could please help me in sftp mulitple files

can anyone help me on this
marsh_1
Honored Contributor

Re: could please help me in sftp mulitple files

hi,

you have'nt said or shown exactly what did'nt work, can you post up any failure messages you got or retry with -v to get the verbose output.

652
Advisor

Re: could please help me in sftp mulitple files

problem is it is not ftp the file to unix box if you give * in the middle of file
Joseph Huber_1
Honored Contributor

Re: could please help me in sftp mulitple files

So Your problem is:
a wildcard "*" mput is doing nothing, but mput with a single file is working ?
I can't reproduce the problem, it works VMS yo VMS and also Linux to VMS.

What are Your systems? both source and destination VMS ?
http://www.mpp.mpg.de/~huber
652
Advisor

Re: could please help me in sftp mulitple files

source is VMS and the destination is UNIX
Jan van den Ende
Honored Contributor

Re: could please help me in sftp mulitple files

652,

>>>
source is VMS and the destination is UNIX
<<<

WHICH unix (and version)

Unix <> Unix <> Unix.

There are MANY Unixes, with similarities, differences, AND incompatibilities...

Proost.

Have one on me.

jpe
Don't rust yours pelled jacker to fine doll missed aches.
Joseph Huber_1
Honored Contributor

Re: could please help me in sftp mulitple files

Ah yes, now I see it:
mput wildcard from VMS to Linux does not work, without any message from the linux side.
same with a wildcard mget from the linux side.

It works if You specify the VMS filename including version like
"mput f*.txt;*"

Probably this behaviour is a result of the SSH shell command issued from sftp.

(sftp,scp) are crooks ;-)
http://www.mpp.mpg.de/~huber
652
Advisor

Re: could please help me in sftp mulitple files

I exactly don't know the unix box present over there. But it was working when i used multinet.

Now due to itanium we are not using multinet and i'm facing this problem
652
Advisor

Re: could please help me in sftp mulitple files

yes what you said is correct.


but i don't want the file to be saved with version number
652
Advisor

Re: could please help me in sftp mulitple files

could you please suggest me if there is any way i can sftp the without version number
652
Advisor

Re: could please help me in sftp mulitple files

so this issue can not resolved
Joseph Huber_1
Honored Contributor

Re: could please help me in sftp mulitple files

I'm not in a position to request it from HP,
but if You have a service contract, file a request to HP to correct this behaviour ...

Meanwhile, on the Linux/Unix system, it needs a rename step. Iam not quite fit in shell syntax, something like
rename ";1" "" *
should do it.
http://www.mpp.mpg.de/~huber
Joseph Huber_1
Honored Contributor

Re: could please help me in sftp mulitple files

and what seems to work for me from VMS to Linux:

$ scp *.txt "linuxnode:sompath/"

This copies files without ;version on Linux side.
http://www.mpp.mpg.de/~huber
652
Advisor

Re: could please help me in sftp mulitple files

thanks for your help
652
Advisor

Re: could please help me in sftp mulitple files

yes that works for me, but probelm is i need to extract only specified files
Joseph Huber_1
Honored Contributor

Re: could please help me in sftp mulitple files

>>
yes that works for me, but probelm is i need to extract only specified files
<<

extract ? what do You mean.

scp does the same as sftp, just different syntax.
Do You mean f*_035.txt instead *.txt ?
*.txt just was my example.
http://www.mpp.mpg.de/~huber
652
Advisor

Re: could please help me in sftp mulitple files

yes f*_0035.txt is not working while trying to do sftp
Joseph Huber_1
Honored Contributor

Re: could please help me in sftp mulitple files

Try
scp "f*_0035.txt" node:"destinationdir/"
http://www.mpp.mpg.de/~huber
Joseph Huber_1
Honored Contributor

Re: could please help me in sftp mulitple files


I said scp , not sftp !!!
scp seems to work with wildcards, sftp works only with explicit ";version" or ";*".
http://www.mpp.mpg.de/~huber