Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 04-17-2005, 02:56 PM   #1
Registered: Jan 2005
Distribution: slackware
Posts: 83

Rep: Reputation: 15
Automatically Copying files from the ftp directory into the html directory

I want to be able to copy all the files from the pub directory into my html directory. Also, im remotely connected so i can only use the console. ANy help would be appreciated, thanks.
Old 04-17-2005, 03:23 PM   #2
LQ Guru
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
can't u use the "cp "command???
Old 04-17-2005, 04:29 PM   #3
Registered: Jan 2005
Distribution: slackware
Posts: 83

Original Poster
Rep: Reputation: 15
right, but i actually have to be there to type it in. could i set up a .perl script to do it?
Old 04-17-2005, 10:55 PM   #4
Senior Member
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46
Why not schedule it as a cron job on whatever interval you want? See man crontab.

Why make a second copy? Making a hard link would save a lot of disk space. See man ln.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
copying directory structure in FTP malaka56 Linux - Software 2 05-14-2005 07:04 PM
Copying all files from subdirectories into one directory Hegemon Linux - General 3 01-17-2005 11:25 AM
copying files to protected directory? webazoid Linux - Software 1 07-11-2004 09:08 AM
missing html files in my home directory scottsteib Linux - Newbie 0 07-29-2003 09:13 AM
How to copy a directory tree without copying the files in it? system Linux - General 2 01-15-2002 09:36 PM

All times are GMT -5. The time now is 12:28 AM.

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