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 sh...@sewingwitch.com wrote: --On Friday, July 08, 2011 8:23 PM -0400 Brian Mathis brian.mathis+cen...@betteradmin.com 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

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 brian.mathis+cen...@betteradmin.com 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.

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 brian.mathis+cen...@betteradmin.com 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

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 centos@centos.org From: Kenneth Porter sh...@sewingwitch.com Subject: Re: [CentOS] Triggering script from cron or web client On Friday, July 08, 2011 11:05 PM +0100 Keith Roberts ke...@karsites.net wrote: Is this something

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

2011-07-09 Thread Emmanuel Noobadmin
On 7/9/11, Keith Roberts ke...@karsites.net 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

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 Robertske...@karsites.net 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

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 the

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 Robertske...@karsites.net 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 Keith Roberts
On Fri, 8 Jul 2011, Les Mikesell wrote: To: centos@centos.org From: Les Mikesell lesmikes...@gmail.com 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 Emmanuel Noobadmin
On 7/9/11, Kenneth Porter sh...@sewingwitch.com 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

[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

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 centos@centos.org From: Kenneth Porter sh...@sewingwitch.com 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

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 ke...@karsites.net 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

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 ke...@karsites.net 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

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 sh...@sewingwitch.com 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