LinuxQuestions.org
Visit the LQ Articles and Editorials section
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, 05: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, 06:17 AM   #2
SaTaN
Member
 
Registered: Aug 2003
Location: Suprisingly in Heaven
Posts: 223

Rep: Reputation: 32
Hey tell me something :-

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

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


All times are GMT -5. The time now is 07:53 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration