1827854 Members
1463 Online
109969 Solutions
New Discussion

Re: Need ftp script

 
Dennis Handly
Acclaimed Contributor

Re: Need ftp script

>My customer wants the same format as SAP ftp application.

 

The two files seem to be input files and appear to be the same.

Vishal_1980
Regular Advisor

Re: Need ftp script

No sir both the inputs files are different.If you open it in notepad you will come to know.
The file which is ftp through script,the info comes in 1 single line,
where as the file transferred by the SAP ftp application was in a proper human readable format.Request you to please suggest for the same or please share me your mail id i will send those files to you.

Thanks,

Vishal
Dennis Handly
Acclaimed Contributor

Re: Need ftp script

>If you open it in notepad you will come to know.

 

I don't use notepad for that reason.  :-)

 

Basically you copied the file in binary mode so it kept the LF terminator.  Evil Windows wants CR/LR.

 

In the script I provided, change the line with "bin" to "ascii".

You need to be aware that ALL files will be transferred this way and would be assumed to be text files.

Vishal_1980
Regular Advisor

Re: Need ftp script

Dear Sir,

I made the changes suggested by you & waiting for customers feedback.
However i wonder when i will become a good on scripting...
I want to learn it from basics ..please suggest me on this....

Thanks
Vishal
Vishal_1980
Regular Advisor

Re: Need ftp script

Hello expert,

client need one more thing ,that whenever the script runs one mail should be triggered >how possibly could i do that this.
Please suggest .
Thanks & regards
Vishal