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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FTP Batch file from Windows to Unix Machine

Status
Not open for further replies.

beaster

Technical User
Aug 20, 2001
225
US
I need to have a batch file theat logs into a Unix machine automatically and run some commands and I am unfamiliar with this. Can someone help?

I can get it to connect to the Unix host, but it won't send the username and password automatically. This is from a Windows 98 machine to Sun Unix Box.

Thanks,
Beaster

 
To run FTP commands in batch mode on a PC, create a batch
file which contains the following line...
ftp -s:filename.txt

The file name listed should be a text file that contains
the FTP commands to be issued. Listed below is an
example of such a text file:

open [system name or IP address]
[user ID]
[password]
get ...
put ...
bye

I hope this helps you.

- vbMax
 
Man that really helped out!

I just realized that I need to do the same thing by telnet also from batch. Is this too much to ask?

Thanks,
Beaster
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top