shellscript on AIX to download file from windows to AIX


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting shellscript on AIX to download file from windows to AIX
# 1  
Old 01-05-2011
Debian 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 :
--------------

$ /home/itaadmin/ITA_Test/current/ITAUpdateTicketJob.sh
ftp: connect: Connection refused
Not connected.
Not connected.
Not connected.
Not connected.




shell script program
---------------------
ftp -inv <ipadress> <<EOF
quote USER <username>
quote PASS <password>

ls


get C:\IAT\Doc forITA\709_LN_MAS.csv
bye
EOF
chmod 777 709_LN_MAS.csv
exit
# 2  
Old 01-05-2011
"Not connected" probably means you can't connect

Just break your FTP batch file into steps and run them one by one. Try:

Code:
$ ftp <ipaddress>

I suspect you're getting blocked... maybe bad IP or firewall.

If you get a login prompt, then attempt to log in with that <username> and <password>. Post your results.

-dufftime
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. AIX

How to copy file from Windows to AIX using SCP?

Hi I'd like to copy file ( or directory ) from a window server to an unix server using scp command, something like this scp -rp admin@10.0.99.99:C:\Documents and Settings\abc.txt /home/oracle/abc.txtI tried testing something like command above but nothing worked. Somebody help !! Thank you (7 Replies)
Discussion started by: bobochacha29
7 Replies

3. 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

4. AIX

Help with copying file from AIX to Windows

Dear All, I am in need of your help again. I want to copy a file from AIX to Windows. I was able do the same with WinSCP but not able to do with any commands. I have tried ftp, scp and scp2 but nothing worked. Can anyone suggest me a command on how to copy/move a file from AIX to... (9 Replies)
Discussion started by: tenderfoot
9 Replies

5. AIX

How to export AIX File system NFS to Windows ?

Hello, Can someone please point to an easy document or steps how to export AIX file system /whatever to Windows O/S Basically Windows should see this filesystem / directory and should be able to write in this filesystem / directory Thanks (2 Replies)
Discussion started by: filosophizer
2 Replies

6. UNIX for Advanced & Expert Users

Using SCP command in IBM AIX to download file from remote to local system

Hi, When i run the code in solaris unix machine, the file from remote server is getting downloaded. but when i use the same code in IBM AIX remote machine, it is not running. It is saying "Erro during scp transfer." Below is the code. Please give some resolution. SCPClient client = new... (1 Reply)
Discussion started by: gravi2020
1 Replies

7. 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

8. AIX

AIX download

hello, Does AIX 6.1 available for download? Thanks, Prashant. (2 Replies)
Discussion started by: prashantbhushan
2 Replies

9. AIX

File Upload Performance using IE from Windows to AIX via HTTPS

Hi, Is there any performance issue uploading a file using IE from Windows client to AIX WAS server via HTTPS? Before that, we were using HTTP protocol and everything run smooth Once we change to HTTPS, we might hit the "HTTP 500 Internal server error" Even though this does not happen all... (1 Reply)
Discussion started by: darontan
1 Replies

10. UNIX for Dummies Questions & Answers

AIX download

I need to get a free download of AIX, anyone have any good links?:) (1 Reply)
Discussion started by: bobjones2
1 Replies
Login or Register to Ask a Question