LinuxQuestions.org
Visit Jeremy's Blog.
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 02-08-2006, 05:19 AM   #1
mus1402
LQ Newbie
 
Registered: Dec 2005
Distribution: Fedora Core 4
Posts: 12

Rep: Reputation: 0
How to create FTP server/client the easiest way using command-line?


How to create FTP server/client the easiest way using command-line?

--------------------------------------------------------------------------------

I want to make a FTP server so that a client can send a backup file using scheduled backup procedure(cron) to my server and then burn the backup file to a CD?

Anyone know how to do this the easiest and fastest using only command-line not GUI mode??

Bear in mind, im a newbie..but i know wats terminal and script..dat sort of things..

Thanks in advance.
 
Old 02-08-2006, 06:16 AM   #2
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
So, you want to write a script to automatically burn some data to a CD?
And who is going to insert the blank CD each time a user uploads some files?

I think you're better of to just setup a normal ftp server (like vsftpd) where your users can upload
stuff.
At regular intervals, you could then create some script to check if the directory where all those backup files are uploaded to reaches a certain size (for instance 600MB), so that you won't burn just a few small files onto each CD, wasting lots of space on the CDs and prompts you to insert a CD if it does.
Writing everything to CD should then be not too difficult.
Bottom line is that you'll need an interactive shell script (ie one that waits for the user to press a key after he/she has inserted a blank CD to write to).

Simple shell scripting should do the trick. See your shell's man page for info on how to read lines from standard input (keyboard). It should be a command like "readline" or something.

As for setting up the FTP server itself, depends on what you want really. I'd advise you to stick to an FTP server that's rather easy to configure, like vsftpd.
 
  


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
Searching for FTP SSL command line client for Fedora chipix Linux - Security 4 06-27-2006 08:47 AM
what is different with Ftp From browser and Ftp from command line zahra79 Linux - Networking 2 06-22-2005 03:26 AM
How do I create accounts, groups and so on only using the command line? brynjarh Linux - Newbie 2 07-07-2004 01:42 PM
Command Line FTP Client Donald1000 Linux - Software 3 09-19-2003 11:06 AM
command line ftp client keevitaja Linux - Software 2 09-12-2002 04:28 PM

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

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