-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I think this is the closest thing to what I am looking for. I will read up on
this and plug it into the project I am working on.
Thanks!
On Sunday 29 June 2003 11:16, Harry Putnam wrote:
> "Wiggins d'Anconia" <[EMAIL PROTECTED]> writes:
> > FA
"Wiggins d'Anconia" <[EMAIL PROTECTED]> writes:
> FAM provides something similar and I believe uses hooks in the linux
> kernel on that system and other means on other *nixes. There even
> exists a Perl module to hook into it (SGI::FAM) good luck getting it
> to work though, I have had some proble
david <[EMAIL PROTECTED]> writes:
>> This is not what the OP asked. But I wondered if one can determine
>> if a file has been writen to or changed inside a directory by looking
>> at a stat on the directory.
>
> if i am not dreaming, OP asks for whether there is new files adding to the
Maybe wh
Harry Putnam wrote:
> david <[EMAIL PROTECTED]> writes:
>
>>
>> you could take a look at the stat function provided by Perl to see if the
>> directory's last modified time or inode change time changed:
>
> This is not what the OP asked. But I wondered if one can determine
> if a file has been w
Gary Stainburn wrote:
On Thursday 26 Jun 2003 10:38 pm, Jenda Krynicky wrote:
From: Chris Zimmerman <[EMAIL PROTECTED]>
Is there some way that I can write a bit of code that will watch a
directory and as soon as a file is written to that directory,
something is run against that file? What would
On Thursday 26 Jun 2003 10:38 pm, Jenda Krynicky wrote:
> From: Chris Zimmerman <[EMAIL PROTECTED]>
>
> > Is there some way that I can write a bit of code that will watch a
> > directory and as soon as a file is written to that directory,
> > something is run against that file? What would be the
EMAIL PROTECTED]
Subject: Re: Hmm....is a hot directory possible?
"jandrspencer" <[EMAIL PROTECTED]> writes:
> Please don't ever tell someone how to code their source. Jeez! Is
right.
I don't see any smileys here so I guess you were offended. Even
though it was clearl
"jandrspencer" <[EMAIL PROTECTED]> writes:
> Please don't ever tell someone how to code their source. Jeez! Is right.
I don't see any smileys here so I guess you were offended. Even
though it was clearly said in complete jest. Not sure how to
respond. I guess its enough to say no ill intent
Sorry, Chris.
Harry, is right I should have explained better with my comments.
Regards,
Jaimee
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Harry,
Please don't ever tell someone how to code their source. Jeez! Is right.
-Original Message-
From: Harry Putnam [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 6:19 PM
To: [EMAIL PROTECTED]
Subject: Re: Hmm....is a hot directory possible?
<[EMAIL PROTECTED]
david <[EMAIL PROTECTED]> writes:
>
> you could take a look at the stat function provided by Perl to see if the
> directory's last modified time or inode change time changed:
This is not what the OP asked. But I wondered if one can determine
if a file has been writen to or changed inside a dire
<[EMAIL PROTECTED]> writes:
> I keep forgetting to post the hold group. Hopes this helps.
>
> #!/usr/bin/perl -w
[...]
Jeez.. I wish you wouldn't over comment like that. Makes it too easy
to figure out what is going on : )
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comma
From: Chris Zimmerman <[EMAIL PROTECTED]>
> Is there some way that I can write a bit of code that will watch a
> directory and as soon as a file is written to that directory,
> something is run against that file? What would be the best way to
> turn this into a daemon?
Depends on the OS.
Under w
" or die "Can't write to /dev/null: $!";
> defined(my $pid = fork) or die "Can't fork: $!";
> exit if $pid;
> setsidor die "Can't start a new session: $!";
> }
> >
> > From: david <[EMAIL PROTECTED]>
>
;Can't write to /dev/null: $!";
open STDERR, ">$errorlog" or die "Can't write to /dev/null: $!";
defined(my $pid = fork) or die "Can't fork: $!";
exit if $pid;
setsid or die "Can't start a new session: $!";
}
>
Chris Zimmerman wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Is there some way that I can write a bit of code that will watch a
> directory and as soon as a file is written to that directory, something is
> run against
> that file? What would be the best way to turn this into a d
16 matches
Mail list logo