• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Apache/websharing enabled?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Apache/websharing enabled? (From: Gnarlodious <email@hidden>)
 >Re: Apache/websharing enabled? (From: Sander Tekelenburg <email@hidden>)

  • Prev by Date: Re: Extracting data from HTML
  • Next by Date: Something to watch out for...
  • Previous by thread: Re: Apache/websharing enabled?
  • Next by thread: Running a tell block without application opening (visually)
  • Index(es):
    • Date
    • Thread