RE: Using SFT in DCL Command Procedures
Okay, now I have a Public Key and it is working fine, however, I am still unable to issue the SFTP command in
a batch job. I tried $ SFTP/BATCHFILE=TEST.COM and got an error stating that the /BATCHFILE=TEST.COM is not
allowed. If I try using SFTP and the commands directly, I get %DCL-W-SKPDAT, image data (records not beginning
with "$") ignored.
Example of 1st scenario: Command = sub testit.com contents of testit.com = $ SFTP/BATCHFILE=TEST.COM
$ EXIT
contents of test.com = open username@ip_address
ascii
put filename.ext
exit
Example of 2nd scenario: Command = sub test.com contents of test.com = $ SFTP
open username@ip_address
ascii
put filename.ext
exit
$ EXIT
NOTE: Both cases work if I do it interactively / using "@".
What am I missing or is this just not possible?
Thanks again!
Jody
[color=blue]
> -----Original Message-----
> From: Richard Whalen [mailto:whalenr@process.com]
> Sent: Monday, May 02, 2005 1:21 PM
> To: [email]info-multinet@process.com[/email]
> Subject: RE: Using SFT in DCL Command Procedures
>
>
> SFTP will not use a password in batch. You must use Public
> Key (without a passphrase) or host based authentication
>
> -----Original Message-----
> From: Jody Craigie [mailto:Jody.Craigie@OpenSolutions.Com]
> Sent: Monday, May 02, 2005 2:16 PM
> To: [email]info-multinet@process.com[/email]
> Subject: RE: Using SFT in DCL Command Procedures
>
>
> Actually I tried to use the /BATCHFILE qualifier and still
> didn't have any luck. It seems to hang after
> it opens the connection - never recognizes/accepts the password.
>[color=green]
> > -----Original Message-----
> > From: Michael Corbett [mailto:corbett@process.com]
> > Sent: Monday, May 02, 2005 1:00 PM
> > To: [email]info-multinet@process.com[/email]
> > Subject: Re: Using SFT in DCL Command Procedures
> >
> >
> > Jody Craigie wrote:[color=darkred]
> > > I am currently trying to convert some of our DCL command[/color]
> > procedures that[color=darkred]
> > > use FTP to SFTP but have been unable to get them to work.
> > >
> > > I was told that SFTP will not work in a command procedure.[/color]
> > Does anyone[color=darkred]
> > > know if that is true or has anyone had any luck in attempting
> > > to do so? I have also been informed that the latest[/color]
> > version of TCP/IP[color=darkred]
> > > Services (HP's product) is suppose to support this so[/color]
> > what's up with[color=darkred]
> > > Multinet?
> > >[/color]
> >
> >
> > SFTP does work in a command procedure. You have to use the[/color]
> /batchfile[color=green]
> > qualifier -
> >
> >
> > MULTINET
> >
> > SFTP2
> >
> > /BATCHFILE
> >
> > /BATCHFILE=file
> >
> > Specifies a file with commands to execute.
> > Authentication must be
> > possible without user interaction.
> >
> >
> > regards
> > Mike
> >
> >
> >
> > --
> > +-------------------------------------------------------------
> > ------------+
> > Michael Corbett Email: [email]Corbett@process.com[/email]
> > Process Software Phone: 800 722-7770 x369
> > 959 Concord St. 508 879-6994 x369
> > Framingham MA 01701-4682 FAX: 508 879-0042
> >[/color]
>[/color]