#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2001
    Location
    virginia
    Posts
    6
    Rep Power
    0

    Question 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

    or

    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.

    Thanks, M.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Oct 2000
    Location
    Back in the real world.
    Posts
    5,966
    Rep Power
    190
    itīs a permissions problem. 99.9% confident on that.
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2001
    Location
    virginia
    Posts
    6
    Rep Power
    0
    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.

IMN logo majestic logo threadwatch logo seochat tools logo