LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 10: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, 11:03 AM   #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, 11:21 AM   #3
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,006

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


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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