LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-29-2003, 06:22 AM   #1
mphreddy
LQ Newbie
 
Registered: Oct 2003
Posts: 7

Rep: Reputation: 0
Question How to auto login into ftp


i want to login automatically into ftp account and then transferr some file so how to use it in scipt ,

thanks for the help in advance.
 
Old 10-29-2003, 07:17 AM   #2
SaTaN
Member
 
Registered: Aug 2003
Location: Suprisingly in Heaven
Posts: 223

Rep: Reputation: 33
Hey tell me something :-

What are the operating systems in use ??
 
Old 10-29-2003, 07:30 AM   #3
SaTaN
Member
 
Registered: Aug 2003
Location: Suprisingly in Heaven
Posts: 223

Rep: Reputation: 33
Code:
# !/bin/sh
USER=$1
PASSWD=$2
/usr/bin/ftp -n remote-hostname-or-ip <<EOF
user login-name password
lcd /home/dir-to-put-file
binary
put file1 
quit
EOF
exit
Hope this does it for you

Last edited by SaTaN; 10-29-2003 at 07:47 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
adminstrator login while auto-login is on? joshknape Linux - General 5 07-19-2005 05:51 AM
FTP Server Up and running... how do I hide ftp users from local login screen? joe1031 Mandriva 2 03-18-2005 05:24 PM
Auto-login and auto-restart... TankerKevo Red Hat 2 10-04-2003 08:52 AM
auto login hk342us Linux - General 11 11-07-2002 05:31 AM
auto-login? Rex_chaos Linux - General 3 05-10-2002 02:58 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:10 PM.

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