March 25th, 2002, 10:01 AM
awk, and writing to a file
I have an awk cgi script which hangs up as soon as it gets to either a
printf "" > file
print someVar >> file
The program had worked fine for years on our old server, but now that we've just moved it to Linux Red Hat, w/ Apache web server it has stopped working.
Also, when I execute the script from the command line the above printf statement will work fine. Any ideas or advice would be very much appreciated.
March 25th, 2002, 05:12 PM
itīs a permissions problem. 99.9% confident on that.
March 25th, 2002, 10:12 PM
Thanks for the reply,
Your right it did have to do with the permissions. Apache had to own the files that were to be written to.