Re: Hmm....is a hot directory possible?

2003-06-30 Thread Chris Zimmerman
-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

Re: Hmm....is a hot directory possible?

2003-06-29 Thread Harry Putnam
"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

Re: Hmm....is a hot directory possible?

2003-06-27 Thread Harry Putnam
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

Re: Hmm....is a hot directory possible?

2003-06-27 Thread david
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

Re: Hmm....is a hot directory possible?

2003-06-27 Thread Wiggins d'Anconia
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

Re: Hmm....is a hot directory possible?

2003-06-27 Thread Gary Stainburn
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

RE: Hmm....is a hot directory possible?

2003-06-26 Thread jandrspencer
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

Re: Hmm....is a hot directory possible?

2003-06-26 Thread Harry Putnam
"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

RE: Hmm....is a hot directory possible?

2003-06-26 Thread jandrspencer
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]

RE: Hmm....is a hot directory possible?

2003-06-26 Thread jandrspencer
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]

Re: Hmm....is a hot directory possible?

2003-06-26 Thread Harry Putnam
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

Re: Hmm....is a hot directory possible?

2003-06-26 Thread Harry Putnam
<[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

Re: Hmm....is a hot directory possible?

2003-06-26 Thread Jenda Krynicky
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

Re: Re: Hmm....is a hot directory possible?

2003-06-26 Thread jandrspencer
" 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]> >

Re: Re: Hmm....is a hot directory possible?

2003-06-26 Thread jandrspencer
;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: $!"; } >

Re: Hmm....is a hot directory possible?

2003-06-26 Thread david
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