[Ilugc] how to make copy of file while writing to a directory

  • From: balan@xxxxxxxxxxxxxxx (Bala)
  • Date: Fri Apr 22 09:53:56 2005



Suresh wrote:

Write a small daemon using bash script or in some other way. That daemon
searching for files in the directory if present, it will copy the files into
a separate directory. I don't know how much extent it will work for u. Its
my suggestion. For example, the application stores the data in /tmp/*.txt
and delete the same. Whether u want to backup the /tmp/*.txt to some other
folder.  In this case, daemon will solve this problem. I think Bash
Scripting work in both Linux as well as HP Unix.

Regards,
K. Suresh


any other way??





-----Original Message-----
From: ilugc-bounces@xxxxxxxxxxxxx [mailto:ilugc-bounces@xxxxxxxxxxxxx] On
Behalf Of Bala
Sent: Friday, April 22, 2005 9:19 AM
To: ilugc@xxxxxxxxxxxxx
Subject: [Ilugc] how to make copy of file while writing to a directory

Hi All,
        we have application(don't have source) writing temp files in a
directory,
after few seconds it will be deleted, now we want to make a copy of those
files,
how to do that??

we want to do this in Linux as well as HP Unix??

any idea??

thanks,
-bala-


[This e-mail is confidential and may be priviledged. If you are not the
intended recipient, please kindly notify us immediately and delete the message
from your system; please do not copy or use it for any purpose, nor disclose
its contents to any other person. Thank you.]
---ST Electronics Group---

Other related posts: