LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-21-2003, 09:36 AM   #1
Alek
LQ Newbie
 
Registered: Aug 2003
Posts: 8

Rep: Reputation: 0
Question Automatic ftp login for WinXP to Linux


I want to create a MSDOS bat file that will be executed on WinXP
machine. In this file I want to:

1. ftp to a linux box (without user intervention).
I can include my user name and password to
the bat script. I don't care about security.
2. And I want to put one file to the Linux box.


I know how to write a shell script to do this from one Linux box
to second Linux box. But I need your help to write a bat script to do this.

Thanks
 
Old 10-21-2003, 01:14 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Take a look at this:
http://malektips.com/95wdo0006.html
 
Old 10-21-2003, 01:17 PM   #3
morbeis
LQ Newbie
 
Registered: Oct 2003
Location: Ireland
Distribution: Slackware
Posts: 17

Rep: Reputation: 0
ok no idea if this is the best way of doing this but it worked for me before.

create a file with the commands you want to run, say commands.txt in here put for example:

open hostname
username
password
cd /tmp/
put c:\myfile
bye

then in your batch file, say ftp.bat have:
ftp -s:commands.txt

anyway i think you get the idea.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FTP - remote login (automatic?) claudiascotti Linux - Networking 4 05-23-2005 03:14 PM
To install ZipSlack, and need to remote login in WinXP to the Linux machine sandugo Slackware 17 05-03-2005 11:10 AM
WinXP user can not login LINUX File Server. thinhpham Linux - Networking 3 12-28-2004 10:24 PM
Can't access winxp (unicode) files from linux FTP server... taligent Linux - Networking 1 05-25-2004 12:09 AM
Automatic Login in Linux kdepa Slackware 19 03-29-2004 12:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration