LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-31-2007, 01:06 AM   #16
p_s_shah
Member
 
Registered: Mar 2005
Location: India
Distribution: RHEL 3/4, Solaris 8/9/10, Fedora 4/8, Redhat Linux 9
Posts: 237
Blog Entries: 1

Rep: Reputation: 34

Create a .netrc file in User's home directory and add following line:
Code:
$cat ~/.netrc
default login anonymous password user@site
Remove line starting with user in script. Add -i for transfer of non interactive multiple files.
Code:
$cat ftptest.sh
ftp -n -d -v -i 10.1.0.22 << END | tee temp.txt
cd kern
mput *
bye
END
I appreciate your effort, but for an end user its very hard to compile a .c file on linux.
Anyways, I am looking at your code, I will get back to you if i find any problem.
 
Old 08-04-2007, 06:17 PM   #17
HowDoIProgramIt
Member
 
Registered: Nov 2006
Location: East Coast, USA (in "the great northeast")
Distribution: Custom / from source; Fedora, Debian, CentOS, Scientific; LFS.
Posts: 94

Rep: Reputation: 15
That's a neat trick; I'll have to remember it.

Unfortunately, it doesn't work 100% of the time; I've run accross a few FTP servers that don't like one part of it or another. Which, with respect to UNIX commands, is about par for the course with respect to compatibility, and portability. The existence of FTP servers that aren't running on UNIX at all further complicates matters...

In any event, that deals with automating FTP sign-ons, but how about other apps that prompt for a password, such as passwd? or smbpasswd?
Quote:
I appreciate your effort, but for an end user its very hard to compile a .c file on linux.
Anyways, I am looking at your code, I will get back to you if i find any problem.
Wow, I hope that's not the case... The code was written to be about as portable as it gets (that was one of the design criteria for that app: it had to be able to run on all sorts of different UNIX flavors without any untoward behavior(s) or effect(s) on a system. And, I included a Makefile that should automate things to an even greater degree.

I can't imagine anyone using a UNIX system (or some variant thereof) and not expecting to have to deal with gcc, make, et al. on a regular basis. I guess I'm not understanding your reservation(s) here...

At any rate, if you see anything in the code I wrote that interests you, or that I screwed up, please let me know. I / we use it on a daily basis and it's seemed to work wonderfully.

- Larry
 
  


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
In plesk , I wish to have a backup cron job, ftp back up file to another ftp server? muskiediver Linux - General 6 07-16-2009 03:13 AM
backup server ; network file system / ftp-server ? markus1982 Linux - Security 5 06-06-2007 05:15 PM
redirecting to other pc's ftp roopunix Linux - Networking 2 05-05-2007 10:32 AM
why when redirecting output to a file any file extension seems to be fine? dr_zayus69 Linux - General 1 05-21-2005 04:09 AM
help with redirecting to ftp SlipAway172 Linux - Networking 1 03-06-2005 08:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:51 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