LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-02-2014, 11:41 AM   #1
kunalks
Member
 
Registered: Dec 2013
Posts: 53

Rep: Reputation: Disabled
bash shell(Copy files automatically)


HALLO PEOPLE;

i want to learn shell scripting in linux and i am trying this

/var/vod/input-----> INPUT FOLDER
/var/vod/output----> OUTPUT FOLDER
i just want that someone send file to input folder via ftp and this all files or anything which is being transffered to INPUT folder automatically transffer to OUtput folder.

can someone please suggest me this.

thanks
 
Old 05-02-2014, 12:03 PM   #2
cquick197
LQ Newbie
 
Registered: Feb 2014
Posts: 15

Rep: Reputation: 0
It wouldn't be immediate, but you could create a cron job to copy all files from input to output every minute.
 
Old 05-02-2014, 12:21 PM   #3
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,252

Rep: Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685
Maybe have a look at inotify
 
  


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
Copy and paste in bash shell??? malak33 Linux - Newbie 7 05-11-2012 09:59 AM
Most secure way to automatically copy files from Linux to Windows? pingu Linux - Security 3 03-25-2012 04:22 PM
Best way to automatically copy files off of a cd to a specific folder? valunthar Linux - Software 2 06-24-2011 06:27 PM
copy directories and files recursively using C shell or bash shell bostonuser Programming 7 06-06-2008 02:24 AM
[SOLVED] A bash script to automatically copy all documents with directory structure thelordmule Programming 8 11-30-2007 03:30 AM


All times are GMT -5. The time now is 09:28 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration