Operating System - OpenVMS
1752800 Members
5616 Online
108789 Solutions
New Discussion юеВ

When i tried to do SFTP, it is creating duplicate BAT file

 
652
Advisor

When i tried to do SFTP, it is creating duplicate BAT file

Hi,
when i tried to sftp in vms, it is creating duplicate BAT files

command i'm using is

$sftp2 '-B' temp.bat
8 REPLIES 8
652
Advisor

Re: When i tried to do SFTP, it is creating duplicate BAT file

can any one please suggest me on this
Steven Schweda
Honored Contributor

Re: When i tried to do SFTP, it is creating duplicate BAT file

> [...] in vms [...]

Not a very precise description of the OS or
IP or SSH software involved. Potentially
more informative:

TCPIP SHOW VERSION
sftp2 "-V"

> $sftp2 '-B' temp.bat

HELP STRING
HELP SYMBOL
HELP
Topic? =
= Subtopic? *

You might do better with something more like
this:

sftp2 "-B" temp.bat
652
Advisor

Re: When i tried to do SFTP, it is creating duplicate BAT file

Hi,

I gave
$ TCPIP SHOW VERSION

HP TCP/IP Services for OpenVMS Industry Standard 64 Version V5.6 - ECO 3
on an HP rx6600 (1.59GHz/12.0MB) running OpenVMS V8.3-1H1

$ sftp2 "-V"

dsa200:[sys0.syscommon.][sysexe]tcpip$ssh_sftp2.exe: SSH Secure Shell OpenVMS (V5.5) 3.2.0 on HP rx6600 (1.59GHz/12.0MB) - VMS V8.1
Steven Schweda
Honored Contributor

Re: When i tried to do SFTP, it is creating duplicate BAT file

Ok. So, did using the right quotation marks
in the command make any difference?
652
Advisor

Re: When i tried to do SFTP, it is creating duplicate BAT file

no, still the same problem
Steven Schweda
Honored Contributor

Re: When i tried to do SFTP, it is creating duplicate BAT file

Perhaps it's time to explain what you're
trying to do. For example, what's in
"temp.bat"? It might be interesting to see
an actual command with some actual output.

Adding "-v" to any SSH-related command can
provide some helpful data.
Kees L.
Advisor

Re: When i tried to do SFTP, it is creating duplicate BAT file

I read somewhere that the inputfile (in this case temp.bat) should have a specific format (something like STMLF I think). And the newer TCPIP-version would do this conversion automagically. If you do a dir/full of the duplicate file you might see different characteristics. I have no way to reproduce this myself. Good luck.
Steven Schweda
Honored Contributor

Re: When i tried to do SFTP, it is creating duplicate BAT file

> I read somewhere [...]

Apparently true. Around here, for example:

alp $ sftp "-B" SFTP.BAT alp

@ SYS$MANAGER:ANNOUNCE.TXT
Warning: Converting file sftp.bat to Stream_LF.
Warning: File sftp.bat converted successfully to Stream_LF.
sftp> put sftp/sftp.test
sftp.test | 12B | 0.0 kB/s | TOC: 00:00:01 | 100%


alp $ pipe dire /full SFTP.BAT | search sys$input sftp.bat, "record format"
SFTP.BAT;2 File ID: (92555,180,0)
Record format: Stream_LF, maximum 0 bytes, longest 18 bytes
SFTP.BAT;1 File ID: (253189,2691,0)
Record format: Variable length, maximum 0 bytes, longest 18 bytes

On the bright side, it only does it once
(unless you delete the new Stream_LF file).

alp $ tcpip show version

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


Also, in case anyone was wondering:

alp $ sftp '-B' SFTP.BAT alp
-b requires an argument greater than zero.