LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 05-27-2002, 04:01 PM   #1
Dr_Travis
LQ Newbie
 
Registered: May 2002
Location: Davis, ca
Distribution: Mandrake 10
Posts: 10

Rep: Reputation: 0
automatically moving files


Hey all, quick question. I want to moves files from one directory to another directory automatically. Would chrontab be the best utility to use, or is there a way to link the directories so the files imediatley move from one dir to the other.
If Chrontab is the best bet could someone tell me what is wrong with this crontab.cron entry?
1 * * * * mv%-u /dir1 /dir2

Thanks in advance
Travis
 
Old 05-27-2002, 06:44 PM   #2
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
That crontab would mean that everything was moved from /dir1 to /dir2 once a minute. You just want anything that ever gets placed in one directory to get moved to another? This sounds like a raging call for a symlink.

ln -s /dir2 dir1 After, of course removing the original dir1.

Cheers,

Finegan
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving files Pyrophorus Slackware 5 11-09-2005 10:47 AM
Moving files UmneyDurak Fedora 4 08-28-2005 05:52 PM
moving files pantera Programming 2 08-23-2005 05:58 AM
Moving Files arockia Linare 3 09-08-2004 08:14 AM
Moving Files jhotchkiss Linux - Newbie 5 09-16-2003 03:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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