Re: Apache/websharing enabled?
Re: Apache/websharing enabled?
- Subject: Re: Apache/websharing enabled?
- From: Zachary Smestad <email@hidden>
- Date: Mon, 9 Feb 2004 17:59:46 -0600
Thanks! This sort of thing will be useful for me in the future.
Here's a one-line version:
return (do shell script "ps -ax | grep httpd") contains
"/usr/sbin/httpd"
Zach Smestad
On Feb 09, 2004, at 12:49 PM, Sander Tekelenburg wrote:
At 10:53 -0700 UTC, on 2004/02/09, Gnarlodious wrote:
I want to open a file as a webshare file (through Apache).
http://127.0.0.1/~user/index.html
Ideally, I want to open the file as loopback only if websharing is on.
I there a shell script to check Apache and/or websharing?
set ApacheUp to false
set the_process to do shell script "ps -ax | grep httpd"
if the_process contains "/usr/sbin/httpd" then
set ApacheUp to true
end if
return ApacheUp
--
Sander Tekelenburg, <http://www.euronet.nl/~tekelenb/>
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.