Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <1DAF66E890E7D411828000D0B7912222ED38@MSNLMX01> From: "Hoyt, Ben" To: "'cygwin AT cygwin DOT com'" Subject: gawk system() problem? Date: Mon, 15 Jan 2001 09:45:42 +1300 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain I'm using cygwin compiled gawk version 3.0.4 and cannot get the gawk system() function to work. I have a file called a.awk with the following contents: BEGIN { print system("dir") } I then type "gawk -f a.awk" and it prints "0" on the screen but nothing else. The "dir" command is not executed. Anyone know why or what to do? Note: What I actually need to do is create a directory in an awk script. I thought I'd be able to do this with system("mkdir mydir"), but as system() doesn't (seem to) work that's not very helpful. :-) Thanks. -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple