Computing.Net > Forums > Disk Operating System > telnet & ftp using batch file??

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

telnet & ftp using batch file??

Reply to Message Icon

Name: Jhonny
Date: November 22, 2000 at 01:07:49 Pacific
Comment:

How can I telnet/ftp to a UNIX machine using a batch file in DOS. I need to mention the user id & password for UNIX in my batch file itself.

Can anyone help me??



Sponsored Link
Ads by Google

Response Number 1
Name: fhkas
Date: November 22, 2000 at 03:22:06 Pacific
Reply:

get yourself a book.......and i only know how to do it in windows


0

Response Number 2
Name: Kerkfehr
Date: November 22, 2000 at 07:02:19 Pacific
Reply:

The following might work for ftp
ftp -s:netrc

(You can call the file netrc whatever you want but in UNIX it's called .netrc and in VMS netrc.com)

netrc should look something like
(you need the prompt line):



prompt

cd /usr/local/bin/src
mget a.*;
mget *.b;
get c.d;


0

Response Number 3
Name: Kerkfehr
Date: November 22, 2000 at 07:04:48 Pacific
Reply:

F' everything important was removed...

The following might work for ftp
ftp -s:netrc ftp.site.com

(You can call the file netrc whatever you want but in UNIX it's called .netrc and in VMS netrc.com)

netrc should look something like
(you need the prompt statement):

username
password
prompt

cd /usr/local/bin/src
mget a.*;
mget *.b;
get c.d;


0

Response Number 4
Name: Kurt
Date: March 7, 2001 at 04:56:53 Pacific
Reply:

How is it possible to also mention a filename you want to put on the host ???


0

Response Number 5
Name: FO
Date: April 12, 2001 at 07:50:14 Pacific
Reply:

Perhaps a DOS box in Windows will be enough?
If so look at this reply
http://www.computing.net/dos/wwwboard/forum/5671.html


0

Related Posts

See More



Response Number 6
Name: Leonardo
Date: July 16, 2001 at 10:18:07 Pacific
Reply:

How can I telnet/ftp to a NT 4.0 machine using a batch file in Unix. I need to mention the user id & password for UNIX in my batch file itself.
Can anyone help me??



0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: telnet & ftp using batch file??

dos batch to ftp files www.computing.net/answers/dos/dos-batch-to-ftp-files/1727.html

create backup cd using batch file www.computing.net/answers/dos/create-backup-cd-using-batch-file/10385.html

Copy Files Using Batch www.computing.net/answers/dos/copy-files-using-batch/8127.html