X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave.korn@artimi.com>
To: <cygwin@cygwin.com>
Subject: RE: Apache (for win) running bash script: ls
Date: Mon, 7 Aug 2006 14:35:36 +0100
Message-ID: <094b01c6ba26$5d2dbd00$a501a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
Content-Type: text/plain; 	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
In-Reply-To:  <loom.20060807T142153-975@post.gmane.org>
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 07 August 2006 13:30, Robert Mark Bram wrote:

> When running a bash script under Apache 2.0.55 for Windows, are there any
> restrictions about accessing the file system? My first test is to do an ls
> and report the results:
> 
> echo -e "Content-type: text/html\n\n"
> echo "<html>"
> echo "<body>"
> echo "<pre>"
> echo "pwd: `pwd`"
> echo "ls: `ls`"
> echo "ls .: `ls .`"
> echo "ls pwd: `ls pwd`"
> echo "</pre>"
> echo "</body>"
> echo "</html>"
> 
> But the actual result was rather sparse:
> pwd: /cygdrive/c/Program Files/Apache Group/Apache2/cgi-bin
> ls:
> ls .:
> ls pwd:
> 
> Any advice would be most welcome!


  You probably need to consider the answers to these two questions first:

What are the perms on the files in the cgi-bin subdir?

What user is apache running as?


  Also, try "ls -la" instead of just ls.

    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

