Quote:
Originally Posted by
h@foorsa.biz
@Corona688
I think he wants a script to automate the file transfer process , So he needs a shell script to pull out the files from the mainframe.
Obviously. He's been given four separate usable answers to that question too, as well as plausible alternatives if sftp/scp can't work for him.
But he keeps demanding
script code instead of
shell code as if they're not the exact same thing, as if sftp is a special "script program"
"script" code is just "shell" code put in a text file and set executable!
If there's anything more about what he expects the script to do, it's not clear at this point. The program he posted looks like a part of something larger, and isn't too informative in itself. He hasn't even told us what paths and filenames he wants transferred, whether it's one or many, whether it's always the same or should find the files or what.
---------- Post updated at 02:49 PM ---------- Previous update was at 02:48 PM ----------
Quote:
Originally Posted by
msandeep27
yes exactly this is what i need i need to automate the file transfer by using sftp for that i need the script
You have them. Several of them. If they're insufficient,
in what manner are they insufficient?
---------- Post updated at 02:54 PM ---------- Previous update was at 02:49 PM ----------
Quote:
Originally Posted by
msandeep27
i edited few things in the example you provided please correct me if i am wrong somewhere
You cannot embed a password for sftp. If you want it to work noninteractively, you have to use ssh keys. To tell you how to do that we need to know more about your system(s).