Using FTP to connect to WIN95/NT PC

How can I transfer files using FTP from
a Unix AIX host to a Win95 PC or a Win NT PC.
LVL 1
petereileringAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

dgrimesCommented:
Are you wanting to initiate the FTP session from Unix to Windows? If you are you will need to install an FTP server on the Windows system. The server will listen for FTP connection requests from FTP clients. I use Netmanage FTP Server for my Windows systems that require this service. It works very well. You can get additional information from www.netmanage.com. There may be some freeware FTP servers for Windows but I have never been able to find one, though I havn't looked very hard either.

If you can initiate the FTP session from the Windows system, the Unix system should already have an FTP server running (unless it was disabled by the system administrator).

The syntax for ftp is:

ftp host_name

There are also a number options that can be passed to ftp. FTP will prompt for a user/password. Once logged in, you can GET or PUT files. From the Unix system you can type man ftp to get all of the particulars on FTP.

Hope this helps.
0
petereileringAuthor Commented:
I have found out that I can use the 'peer web service'
from the windows NT 4.0 to connact from UNIX to WIN NT.
This works just fine.

I only need some program to connect (using ftp) from Unix to Win95
0
dgrimesCommented:
My comments were in regards to Windows 95. Windows NT does have a FTP server. I didn't make myself very clear as to which OS required the FTP server. Glad you were able to get going. :)
0
Powerful Yet Easy-to-Use Network Monitoring

Identify excessive bandwidth utilization or unexpected application traffic with SolarWinds Bandwidth Analyzer Pack.

basantCommented:
Do u want programmatically or by Shell.


BTW :
NT whould be running Ftp server.

I had written programs in NT which transfers file from Unix periodically.

if u are using shell then
use simple ftp commands.
0
petereileringAuthor Commented:
I want to use a UNIX script to log on to an NT server with FTP.
The script looks like this: ftp NTservername <username
'username is the file wich contaims the username'
It works almost fine, The NT server asks for a password so the script is waiting for me to hit the enter key.
How can I solve this problem ?
My goal is to automatic log on to the NT server en put a file
to it.
0
dgrimesCommented:
In your script file, after the password, append \r. This is the carriage return you need.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
basantCommented:
I do agree with dqrimes.
0
ahoffmannCommented:
UNIX ftp always asks for passwords on tty, so you cannot redirect it from file or even a pipe.
You need an expect script (http://www.scriptics.com/) to do it, or ncftp which has special options for this purpose.
0
dgrimesCommented:
I'm not exactly sure, but I don't think he is trying to redirect or pipe. I believe a .netrc script will pass the password just fine. At least it does for me. In the .netrc script use password <password\r> this should work. Unless he is trying to execute everything from a shell script. But if all he needs to do is get connected and put a file, then .netrc should do the trick. Hope this helps. :)
0
basantCommented:
Dear Ahoffmann, I think you are right, but what happens if we write a C program and open a port at ftp port number and then send the username and password. Will it shows that connection is successful ?
0
ahoffmannCommented:
dgrimes, .netrc is recogniced by ncftp
basant, you can do, but why do it again when expect still is alive?
0
basantCommented:
You r right ahoff, but That may be a last option and probably the cleaner option too.
0
petereileringAuthor Commented:
I am trying to use a .netrc file but somehow the netrc file is being ignored.
Extra info:
I am logged on to Unix Aix with username peter and I am root user because I used the su command.
The username who is to use ftp is ftpuser with password.
The netrc file is in the /u/peter/.netrc  dir.
But I have tried to put the .netrc file in de root dir the ftp user dir but it just  doesnt seem to work.
0
ahoffmannCommented:
AFAIK, AIX uses a standard ftpd, not ncftpd. You may check with ps, or grep in /etc/inetd.conf
0
marouCommented:
if you would like to communicate with unix to win95 or winNT, try this one ;

    ftp <remote-host>

ftp always prompts you to user login
and password. and after you logged in, you can now use put or mput.

   put - putting single file
     ( i.e. put <file>

   mput - putting multiple files
     ( i.e. mput * or mput *.ext )

hope this will help.
0
petereileringAuthor Commented:
I found out that I did not use the .netrc file in the correct way.
The rights of the .netrc file has to be as follows:
- rw -- -- -- - .netrc
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Networking

From novice to tech pro — start learning today.