• 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: Sander Tekelenburg <email@hidden>
  • Date: Mon, 9 Feb 2004 19:49:47 +0100

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.

  • Follow-Ups:
    • Re: Apache/websharing enabled?
      • From: Zachary Smestad <email@hidden>
References: 
 >Apache/websharing enabled? (From: Gnarlodious <email@hidden>)

  • Prev by Date: Apache/websharing enabled?
  • Next by Date: Extracting data from HTML
  • Previous by thread: Apache/websharing enabled?
  • Next by thread: Re: Apache/websharing enabled?
  • Index(es):
    • Date
    • Thread