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-06-2010, 02:46 PM   #1
guppista
LQ Newbie
 
Registered: Apr 2007
Posts: 4

Rep: Reputation: 0
Copying open and incremental file


Hi all,

I'm getting a video from a camera connected to the computer and saving it to a constantly increasing file.

The thing is that I'm trying to make a non-stop copy of this file over the network (i.e. using scp, rsync or something like that).

Does anybody knows how to do it?

Thanks
 
Old 05-06-2010, 03:16 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well a proper network filesystem would be the sane way to do it, i.e. NFS. If you don't have NFS for some reason, I'd image than a fuse project like SSHFS to let you mount a file system locally over SSH as the protocol, should also work OK. I don't know if it has any specific issues about opening and closing file handles and how it writes, but I'd imagine it'd work. Keeping a file continually open is not really fun though, is there no way to save smaller multiple files or such?
 
Old 05-07-2010, 04:17 PM   #3
guppista
LQ Newbie
 
Registered: Apr 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by acid_kewpie View Post
well a proper network filesystem would be the sane way to do it, i.e. NFS. If you don't have NFS for some reason, I'd image than a fuse project like SSHFS to let you mount a file system locally over SSH as the protocol, should also work OK. I don't know if it has any specific issues about opening and closing file handles and how it writes, but I'd imagine it'd work. Keeping a file continually open is not really fun though, is there no way to save smaller multiple files or such?
Nice idea. But, using NFS, if the server stops for some reason, I won't be able to see the files.

I there an option in some NFS to make a real-time copy of the files from the NFS server to my local machine?

About the smaller multiple files, actually I'm making movie files hour by hour.

Thanks for the fast help.
 
Old 05-07-2010, 06:18 PM   #4
speck
Member
 
Registered: Nov 2001
Location: US
Distribution: Slackware 14.2
Posts: 375

Rep: Reputation: 115Reputation: 115
If the computer that has the camera attached also serves as the NFS server, then the remote machine could drop connection and it wouldn't affect your ability to see the files locally. You didn't say, but I'm guessing the local machine with the camera is running Linux.
 
Old 05-07-2010, 09:58 PM   #5
guppista
LQ Newbie
 
Registered: Apr 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by speck View Post
If the computer that has the camera attached also serves as the NFS server, then the remote machine could drop connection and it wouldn't affect your ability to see the files locally. You didn't say, but I'm guessing the local machine with the camera is running Linux.
Sorry, I made a little confusion here.

When I said local machine I meant the computer who is trying to copy in real-time the files from the computer that has the camera attached. I want to copy this video files from the computer who is recording it into another machine.

Actually, I just don't want to save the video files only in the computer that has the camera attached but also try to save this files in another computer over the network in real-time or near it.

Thanks.
 
  


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
strange (to me) behavior of file permissions when copying file warrob Linux - General 10 10-25-2009 05:13 AM
incremental file name for imagemagick screenshots geokker Linux - General 4 12-19-2007 11:35 AM
Script to change file names with incremental counter. rickh Linux - Software 2 05-01-2006 10:43 PM
Geting error loop QFike:getch: File not open QFile:atEnd: this file is not open badgerbox76 Linux - Newbie 6 01-07-2006 05:30 PM
Question on File System and File Copying hey_joe Linux - Newbie 2 11-05-2003 10:30 AM

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

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