Help with copying file from AIX to Windows


 
Thread Tools Search this Thread
Operating Systems AIX Help with copying file from AIX to Windows
# 8  
Old 03-17-2010
Hi all ,

sorry for delay in reply.

it is just a text file.

I was able to copy the file using a WinSCP gui tool from AIX server to local Windows box.

But not able to copy file with any file transfer commands. I am looking for commands because I have to write a script.

Please suggest me a command to transfer the file from AIX server to Windows box. In my case I cannot use any samba.

Thanks in advance
# 9  
Old 03-17-2010
you need some service that provides ftp, sftp, rcp.. for you windows box

FileZilla - Server Download

for example


or you export a cifs share on your windows box, and mount it on the aix box, with the bos.cifs_fs.rte package

so no running smbd is required on the aix box
# 10  
Old 03-17-2010
Like funksen said, if you have bos.cifs_fs.rte installed, you could use this kind of script to automatically copy files to a Windows share:
Code:
smbclient "//windows_hostname/share_name" -U win_domain/win_userid << EOF
cd remote_path
prompt
mput file_name
EOF

"win_domain" is your windows domain if you use one
"win_userid" is the Windows user ID that has write access to the share
"share_name" has to be the name of the share.
"remote_path" would be subdirectories in the share if you had any.

To not get prompted for a password, save the password to a file like "/home/user/.smb.passwd" and then export the environment variable "export PASSWD_FILE=/home/user/.smb.passwd" before you run the commands above or save inside a script along with the commands.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Samba 3.6 on AIX 7.1 - Windows 10 Access to AIX file shares using Active Directory authentication

I am running AIX 7.1 and currently we have samba 3.6.25 installed on the server. As it stands some AIX folders are shared that can be accessed by certain Windows users. The problem is that since Windows 10 the guest feature no longer works so users have to manually type in their Windows login/pwd... (14 Replies)
Discussion started by: linuxsnake
14 Replies

2. Shell Programming and Scripting

Copying a text file from my Ubuntu Windows Sub System to a remote instance through SSH

*Following questions involves use of YAML, BASH, SSH and Software called Ansible* I am trying to learn how to use a Linux environment (in my case a Ubuntu Windows Sub System) to copy a text file from my files to a remote instance (in this case Amazon Web Services) by connecting via SSH. I... (8 Replies)
Discussion started by: Suhaba
8 Replies

3. Shell Programming and Scripting

Copying, renaming the file ftp it from windows to Linux

Hello my dear friends, Two file are auto generated from mon - fri at different directories on same windows box.Every day i have to copy the file, rename it (specific name)and ftp it to linux box specified directory. is it possible to automate this process,If yes this has to be done from windows... (1 Reply)
Discussion started by: umesh yadav
1 Replies

4. AIX

Error while copying file on AIX

/oragriddb_01/app/oracle/product/11203> ct_14_2012_22_58_58/files/lib/libdbcfg11.so /oragrid_01/Grid_11203/lib/libdbcfg11.so < cp: /oragrid_01/Grid_11203/lib/libdbcfg11.so: Cannot open or remove a file containing a running program. Best regards, Vishal (2 Replies)
Discussion started by: Vishal_dba
2 Replies

5. AIX

Reading .properties file on AIX and Windows

I have a FirstDoc application that integrates with SharePoint 2010. As per the FirstDoc install guide, I need to generate the sharepoint_authentication properties file and place it on the server and the 2 Windows boxes that contain other components of the app. The properties file I... (1 Reply)
Discussion started by: shoefiend
1 Replies

6. UNIX for Dummies Questions & Answers

Copying text from Windows to AIX - missing text?

Hi All, I'm hoping this is an easy question, but I'm having a weird problem trying to simply copy and paste text from MS Windows (XP) Notepad and then pasting into vi or vim in AIX. When I type "oslevel" I get "5.3.0.0". The problem is that once the text is pasted, there are sections of text... (2 Replies)
Discussion started by: PlainInverted
2 Replies

7. Shell Programming and Scripting

shellscript on AIX to download file from windows to AIX

i require the shell script that is running on the AIX to download a file from Windows desktop to the location where the shell script resides onthe AIX system. I have used the below code: but it throwing the error as below.please help me at the earliest to resolve the issue. error message :... (1 Reply)
Discussion started by: kvkc
1 Replies

8. AIX

File Transfer from windows to AIX

How to transfer a directory from my windows machine to my AIX server?? Plz give me a detailed step wise solution... Thanks in Advance.... (0 Replies)
Discussion started by: abhishek27
0 Replies

9. UNIX for Advanced & Expert Users

Copying a file from Solaris to Windows 2003 server

Hello, I am really new to solaris and I want to know the easiest way to copy a file from a solaris server to an Iomega NAS running windows 2003 server. Can I map the drive on the windows box so the solaris server can see it. Any advice would be appreciated. (1 Reply)
Discussion started by: akula81
1 Replies

10. UNIX for Dummies Questions & Answers

Copying file from Unix workspace to Windows Network

Hi All, I am new for Unix, and facing one problem I wanted to copy some of files from my Unix workarea to Window network drive. I am not able to use copy or move command for this, as this only works within workarea. Please let me know, how it can be done. (2 Replies)
Discussion started by: ashwanis
2 Replies
Login or Register to Ask a Question