File Permissions

I'm having trouble outputting anything to a file, I'm not sure whether it's a fault in my script, or whether it's a file or directory access problem.

Here's a very simple test script I'm trying to run which results in a Server Side error

print TEST "Hello this is a test";

I'm running the script from within a logs subdirectory on a Unix server, the logs subdirectory has -rwxrwxrxw and I also have a file in that directory called output.txt which also has full permissions.

My suspicion is that the Service Provider will not allow me to write anything out on the server,  but I just want to check that I'm not missing something obvious here.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

In perl to indicate that you are trying to write to the file you will want to open it using this:

open(TEST, ">output.txt");

You will find that your script works better.

> to write
>> to append

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
BSamsonAuthor Commented:
*slaps forehead*

Thanks olthoff

I was getting so wrapped up in looking for something in the file permissions I couldn't see the wood for the trees.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.