Re: [CentOS] Triggering script from cron or web client

2011-07-12 Thread Brian Mathis
On Mon, Jul 11, 2011 at 10:16 PM, Kenneth Porter wrote: > --On Friday, July 08, 2011 8:23 PM -0400 Brian Mathis > wrote: > >> If you don't want to wait a full minute you could use >> 'incron' to monitor the temp directory and kick the update right away. >>  Seems better than having something in a

Re: [CentOS] Triggering script from cron or web client

2011-07-11 Thread Les Mikesell
On 7/11/11 9:16 PM, Kenneth Porter wrote: > --On Friday, July 08, 2011 8:23 PM -0400 Brian Mathis > wrote: > >> If you don't want to wait a full minute you could use >> 'incron' to monitor the temp directory and kick the update right away. >> Seems better than having something in a loop constan

Re: [CentOS] Triggering script from cron or web client

2011-07-11 Thread Kenneth Porter
--On Friday, July 08, 2011 8:23 PM -0400 Brian Mathis wrote: > If you don't want to wait a full minute you could use > 'incron' to monitor the temp directory and kick the update right away. > Seems better than having something in a loop constantly checking. incron sounds promising. I could use

Re: [CentOS] Triggering script from cron or web client

2011-07-09 Thread Emmanuel Noobadmin
On 7/9/11, Kenneth Porter wrote: > I have a Bash script, currently run a couple times an hour from cron, that > pulls data from an old Windows DB by rsync, converts it to SQL, and injects > it into a MySQL DB for display in a LAMP-based app. (Make and Perl are also > involved to minimize the numbe

Re: [CentOS] Triggering script from cron or web client

2011-07-09 Thread Keith Roberts
On Fri, 8 Jul 2011, Les Mikesell wrote: > To: centos@centos.org > From: Les Mikesell > Subject: Re: [CentOS] Triggering script from cron or web client ...snip... > You already have a DB connection in common - can't the update script > itself lock something in the DB while

Re: [CentOS] Triggering script from cron or web client

2011-07-09 Thread Ljubomir Ljubojevic
Les Mikesell wrote: > On 7/8/2011 5:43 PM, Ljubomir Ljubojevic wrote: >> Kenneth Porter wrote: >>> On Friday, July 08, 2011 11:05 PM +0100 Keith Roberts >>> wrote: >>> Is this something you could do with AJAX? >>> You mean JavaScript on the web client? That won't do anything for me on the >>>

Re: [CentOS] Triggering script from cron or web client

2011-07-09 Thread Les Mikesell
On 7/8/2011 4:58 PM, Kenneth Porter wrote: > I have a Bash script, currently run a couple times an hour from cron, that > pulls data from an old Windows DB by rsync, converts it to SQL, and injects > it into a MySQL DB for display in a LAMP-based app. (Make and Perl are also > involved to minimize

Re: [CentOS] Triggering script from cron or web client

2011-07-09 Thread Les Mikesell
On 7/8/2011 5:43 PM, Ljubomir Ljubojevic wrote: > Kenneth Porter wrote: >> On Friday, July 08, 2011 11:05 PM +0100 Keith Roberts >> wrote: >> >>> Is this something you could do with AJAX? >> >> You mean JavaScript on the web client? That won't do anything for me on the >> server. >> >> Note that th

Re: [CentOS] Triggering script from cron or web client

2011-07-09 Thread Emmanuel Noobadmin
On 7/9/11, Keith Roberts wrote: > Well the AJAX would be running on the server side, and the > results would be received by the client running the > server-sided code over your network. AJAX is a browser/client side method, it doesn't solve his fundamental server side requirements which remains t

Re: [CentOS] Triggering script from cron or web client

2011-07-09 Thread Keith Roberts
On Fri, 8 Jul 2011, Kenneth Porter wrote: > To: CentOS mailing list > From: Kenneth Porter > Subject: Re: [CentOS] Triggering script from cron or web client > > On Friday, July 08, 2011 11:05 PM +0100 Keith Roberts > wrote: > >> Is this something you could

Re: [CentOS] Triggering script from cron or web client

2011-07-08 Thread Brian Mathis
On Fri, Jul 8, 2011 at 5:58 PM, Kenneth Porter wrote: > I have a Bash script, currently run a couple times an hour from cron, that > pulls data from an old Windows DB by rsync, converts it to SQL, and injects > it into a MySQL DB for display in a LAMP-based app. (Make and Perl are also > involved

Re: [CentOS] Triggering script from cron or web client

2011-07-08 Thread Ljubomir Ljubojevic
Kenneth Porter wrote: > On Friday, July 08, 2011 11:05 PM +0100 Keith Roberts > wrote: > >> Is this something you could do with AJAX? > > You mean JavaScript on the web client? That won't do anything for me on the > server. > > Note that the problem isn't strictly a web server problem. That j

Re: [CentOS] Triggering script from cron or web client

2011-07-08 Thread Kenneth Porter
On Friday, July 08, 2011 11:05 PM +0100 Keith Roberts wrote: > Is this something you could do with AJAX? You mean JavaScript on the web client? That won't do anything for me on the server. Note that the problem isn't strictly a web server problem. That just happens to be the place where I wa

Re: [CentOS] Triggering script from cron or web client

2011-07-08 Thread Keith Roberts
On Fri, 8 Jul 2011, Kenneth Porter wrote: > To: CentOS mailing list > From: Kenneth Porter > Subject: [CentOS] Triggering script from cron or web client > > I have a Bash script, currently run a couple times an hour from cron, that > pulls data from an old Windows DB by rsy

[CentOS] Triggering script from cron or web client

2011-07-08 Thread Kenneth Porter
I have a Bash script, currently run a couple times an hour from cron, that pulls data from an old Windows DB by rsync, converts it to SQL, and injects it into a MySQL DB for display in a LAMP-based app. (Make and Perl are also involved to minimize the number of tables touched and to clean up the