This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

gawk system() problem?



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]