delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/08/07/08:30:32

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Robert Mark Bram <robert DOT bram AT colesmyer DOT com DOT au>
Subject: Apache (for win) running bash script: ls
Date: Mon, 7 Aug 2006 12:30:05 +0000 (UTC)
Lines: 28
Message-ID: <loom.20060807T142153-975@post.gmane.org>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hi All,

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!

Rob
:)


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019