rmtogether
asked on
How to execute Linux command from SSIS and files movement between windows & Linux
Dear Experts,
I am thinking to use SSIS to do the following procedure.
(1) copy many files to Linux machines. then
(2) execute a Linux program (command) to analysis those files. The program will output the result to the local Linux drive
(3) when (2) is done, then pull the result back to Windows machine
For (1) I am thinking of FTP task (by FTP or SFTP)
how about the task of (2) and (3) ? Could you please help ... Thanks
I am thinking to use SSIS to do the following procedure.
(1) copy many files to Linux machines. then
(2) execute a Linux program (command) to analysis those files. The program will output the result to the local Linux drive
(3) when (2) is done, then pull the result back to Windows machine
For (1) I am thinking of FTP task (by FTP or SFTP)
how about the task of (2) and (3) ? Could you please help ... Thanks
can tell from where you copying files to linux machine?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi, Prabhin MP
Thanks for your quickly reply
I have admin privilege, I can decide any file locations on both Windows and Linux.
By the way, the communication between Windows and Linux is through the Internet. So I am thinking of SFTP/FTP
Thanks for your quickly reply
I have admin privilege, I can decide any file locations on both Windows and Linux.
By the way, the communication between Windows and Linux is through the Internet. So I am thinking of SFTP/FTP
you can use the above command
Forget FTP, either use scp like prabhin showed or SFTP (also uses SSH as transport)
If results are text files be aware that on unix lines end with \n only and in windows \r\n is used.
so you may need a dos2unix before using a file on unix and unix2dos to convert a file ready for use in windows.
If results are text files be aware that on unix lines end with \n only and in windows \r\n is used.
so you may need a dos2unix before using a file on unix and unix2dos to convert a file ready for use in windows.