[SLUG] perl DBI special chars handling

2006-01-09 Thread Julio Cesar Ody
Hi list. I tried emailing the perl monger list, but it seems no one got it. There's a certain function in a program I wrote which inserts data into a MySQL database using DBI. Here's a snippet: my $MYSQL_insert = "INSERT INTO $MYSQL_tablename (title, link, description, pubdate, source) VALUES (?,

Re: [SLUG] bash question - how to tell if apache has stopped?

2006-01-09 Thread Ben Donohue
Hi Mike, I do the following on a ppp script to check if the process is running or not. It will start the process if it has stopped. Maybe you can modify it for your needs... ps ax|fgrep pppd|fgrep -v fgrep > /dev/null || /usr/sbin/pppd Ben Michael Lake wrote: Hi all I have a bash script th

[SLUG] bash question - how to tell if apache has stopped?

2006-01-09 Thread Michael Lake
Hi all I have a bash script that shuts down apache so that users can't updates a database, I do a backup of the database, then startup apache again. Roughly this is what I have: sudo apache-perlctl stop >> $LOGFILE 2> $ERRORFILE sleep 5 The sleep is to give apache enough time to shutdown but

[SLUG] Reading system mail in Thunderbird

2006-01-09 Thread Leslie Katz
Re my post of a few minutes ago: apologies for bothering people. I decided to try making the mail subdirectory of the spool directory mode 01777 too, even though that wasn't mentioned in the Thunderbird error message. It worked and my LogWatch mail's now in my leslie@(none) inbox. Apologies ag

[SLUG] Reading system mail in Thunderbird

2006-01-09 Thread Leslie Katz
I am trying to get my LogWatch results to be available to me in Thunderbird. Having cobbled together a plan from various Web pages, I first edited my /etc/aliases file, so that it said at the end: # Person who should get root's mail root:leslie I then ran, as root, newaliases and, aft