Re: Mac Developer Question

2004-05-22 Thread Hassan Schroeder
John Mistler wrote: Aha, this revealed the .pid: /usr/local/mysql-standard-4.0.18-apple-darwin6.8-powerpc/data/John-Mistlers- Computer.local.pid Now, this brings up a new question. Is there a "sudo find" command I can use to locate the proper .pid on any given computer? I am hard coding this into

Re: Mac Developer Question

2004-05-22 Thread John Mistler
Aha, this revealed the .pid: /usr/local/mysql-standard-4.0.18-apple-darwin6.8-powerpc/data/John-Mistlers- Computer.local.pid Now, this brings up a new question. Is there a "sudo find" command I can use to locate the proper .pid on any given computer? I am hard coding this into an application th

Re: Mac Developer Question

2004-05-22 Thread Hassan Schroeder
John Mistler wrote: I'm having trouble getting this line to work. I have tried: kill `cat /usr/local/mysql/bin/mysql/data/localhost.pid` -> Not a directory kill `cat /usr/local/mysql/data/localhost.pid` -> Permission denied I'm not sure if I have the wrong hostname, or if the command is more flawe

Re: Mac Developer Question

2004-05-22 Thread John Mistler
I'm having trouble getting this line to work. I have tried: kill `cat /usr/local/mysql/bin/mysql/data/localhost.pid` -> Not a directory kill `cat /usr/local/mysql/data/localhost.pid` -> Permission denied I'm not sure if I have the wrong hostname, or if the command is more flawed than that. Furt

Re: Mac Developer Question

2004-05-22 Thread Greg Willits
On May 22, 2004, at 2:12 AM, John Mistler wrote: In the larger picture, I am wondering if there is a way to avoid all of this. Ideally, I would like for the application to come packaged with MySQL, to install MySQL automatically (not sure what happens if MySQL already exists on the system), and to

Re: Mac Developer Question

2004-05-22 Thread Paul Bingman
On Sat, 22 May 2004, John Mistler wrote: > do shell script "kill cat /usr/local/mysql/bin/mysql/data/localhost.pid" The kill command takes a numeric PID as its argument. You need to get the pid out of the pidfile. So to get the above to work you have to enclose cat and the filename in backticks