The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
SFTP help please Bab00shka UNIX for Dummies Questions & Answers 5 12-21-2008 07:49 AM
sftp melanie_pfefer SUN Solaris 1 03-19-2008 04:00 PM
SFTP on AIX 5.2.2 Fima62 AIX 1 02-20-2007 06:56 AM
rsh commands not getting executed from Solaris 10 System to AIX System jumadhiya SUN Solaris 25 01-22-2007 05:26 AM
sftp OrthoProof USA UNIX for Dummies Questions & Answers 1 06-09-2006 04:44 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-02-2007
rinku11 rinku11 is offline
Registered User
  
 

Join Date: Dec 2005
Posts: 20
SFTP to MVS system

Hi All,

I have written a script that transfers(FTP) files from Unix system to MVS system.

Below is the code for it.

ftp -inv $HOST<<ftp_test
quote site LRECL=200
quote site BLKSIZE=28000

mput SOURCE DEST
ftp_test


Here I need the help, if the above code can get converted to SFTP with same functionality? If so, what the code shall be?

NOTE: The size of file is more than 100MB.
  #2 (permalink)  
Old 07-03-2007
peteroc peteroc is offline
Registered User
  
 

Join Date: Aug 2006
Posts: 14
Quote:
Originally Posted by rinku11 View Post
Hi All,

I have written a script that transfers(FTP) files from Unix system to MVS system.

Below is the code for it.

ftp -inv $HOST<<ftp_test
quote site LRECL=200
quote site BLKSIZE=28000

mput SOURCE DEST
ftp_test


Here I need the help, if the above code can get converted to SFTP with same functionality? If so, what the code shall be?

NOTE: The size of file is more than 100MB.
I'm having to deal with that very issue myself. Unless your MVS system has SFTP loaded to it, you won't be able to transfer files that way. If your system does have SFTP, you'll need to generate a public/private key pair on your server, and have the public key loaded to your MVS system. Basically your code will look the same, except you'll have an "S" in front of FTP.
  #3 (permalink)  
Old 07-03-2007
rinku11 rinku11 is offline
Registered User
  
 

Join Date: Dec 2005
Posts: 20
Thanks!

But usually, SFTP also works even if you do not exchange the public keys. The only difference is that, if the keys are shared, it will not prompt for the password. To handle this issue, I am ready to pass the username and password.

But will the same code work in the same case? As sftp does not recognizes the "-i" option. It even does not recognize the QUOTE option.

Please share with me, if you have a script already in place?


Thanking you again....
  #4 (permalink)  
Old 07-05-2007
peteroc peteroc is offline
Registered User
  
 

Join Date: Aug 2006
Posts: 14
Quote:
Originally Posted by rinku11 View Post
Thanks!

But usually, SFTP also works even if you do not exchange the public keys. The only difference is that, if the keys are shared, it will not prompt for the password. To handle this issue, I am ready to pass the username and password.

But will the same code work in the same case? As sftp does not recognizes the "-i" option. It even does not recognize the QUOTE option.

Please share with me, if you have a script already in place?


Thanking you again....


Ah yes, I forgot about that part. I've brought that issue up to management also, and they are looking into it. For now, I've been given an exception to the SFTP debacle on the mainframe. And you're right, the -i option, -n, and a few others are also unavailable in SFTP. Makes me wonder why they'd secure FTP and remove functionality?
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:08 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0