Chris Lavigne's Breadboard BI Blog http://breadboardbi.com/blog Loosely cohesive, brief posts concerning business intelligence, data warehousing, and data integration. Sun, 21 Feb 2010 18:33:52 +0000 http://wordpress.org/?v=2.9.2 en hourly 1 Accessing windows files from linux / unix http://breadboardbi.com/blog/2010/02/21/accessing-windows-files-from-linux-unix/ http://breadboardbi.com/blog/2010/02/21/accessing-windows-files-from-linux-unix/#comments Sun, 21 Feb 2010 18:33:52 +0000 Administrator http://breadboardbi.com/blog/?p=11 I recently had the need to write files from a UNIX server to a Windows file server.  In this instance the file was created as the result of an Informatica process, but this technique could be used if the file was created by Pentaho Data Integration, Talend, or any other method.  In this case ftp was not an option, nor was a permanent mount.  To move the file, I used smbclient. 

The command is fairly simple:

/path_to_smbclient_on_unix_server/smbclient //windows_server_name/directory_on_windows_server -A /path_to_authentication_file_on_unix_server/.smbclient (authentication file) -c “prompt; lcd /path_to_source_file_on_unix_server/; cd \”path_to_put the file_on_windows_server\”; mput my_file_name.txt;”

The format of the autentication file is also simple:

username = <value>
password = <value>
domain   = <value>

]]>
http://breadboardbi.com/blog/2010/02/21/accessing-windows-files-from-linux-unix/feed/ 0
The New Blog. http://breadboardbi.com/blog/2010/02/19/test/ http://breadboardbi.com/blog/2010/02/19/test/#comments Fri, 19 Feb 2010 13:51:45 +0000 Administrator http://breadboardbi.com/blog/?p=7 Watch this space for loosely cohesive, brief posts concerning business intelligence, data warehousing, and data integration. ]]> http://breadboardbi.com/blog/2010/02/19/test/feed/ 0