Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

script to transfer files from Aix to Window (Local PC)

Status
Not open for further replies.

shoux

Technical User
Nov 9, 2000
83
MY
Hi all

Is there any script that can transfer files from Aix to local PC (window base).Currently, we are using cuteFtp Ver 3.5 program (window) to performs the task. I would really request your help to put a small script to get the task fulfilled

Please do help me Sir and I’m totally new into shell scripts. Your quick response is much appreciated

Thanks and warm cheers

Shoux


shoux
 
hi,
dear Shoux,
scrips are not a problem, the one is who is the server and
who is the client.

The Server offres a sevices (without interface): let me say
is the passive part of transaction (it executes commands, but on client demand)

The client is the interactive part of tr. and scripts may be useful to make automatic this task.

FTP is a typical Client-Server application and between Win and Unix, this acts as server and Win as client. Using, on PC, system ftp client (character edition) (ftp from command line), you can write scripts ( enter ftp -? ), or
using 3rd part program, you can use macro.

If you want write scripts on AIX, you must respect above rule: AIX will become client, Windows will be server.

If you want continue use FTP, Install on windows IIS + Ftp server and use ftp scripts on AIX.
To avoid install IIS on Win, (may be a W9x machine), you can use SAMBA on AIX . SAMBA is typically a SERVER: Unix machine share some their folders in SMB (Windws file protocol), and PC will see them as they were on a PC.

There is also a little part in SAMBA, called SambaClient
(smbclient maby the command) that you can use as client from Unix, toward WIN server.

If this explanation is almost clear for you, continue in this thread to obtain pratical informations about the way you intend follow.

bye
 
Hi victorv
Thanks for your prompt reply and detail explanation

however, I still need the script that takes one or more files from server on AIX and i need to put the file in a place in Window .

For example i have 1 files named: tmp111 in the AIX let says in /temp/tmp111 and i need that the program will transfer the file to C:\temp
can shell script to do it? The shell script must run from AIX.

Help me please...


shoux
 
You can do this via a batch file from windows. To automatically do this you would create an "AT" job to run the file.

For example:

ftp myaixhost
user username
password
lcd /mydumpdirectory
cd /aixfolder
bin
get aixfile
cd /anotheraixfolder
get aixfile
bye

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top