471,321 Members | 1,938 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,321 software developers and data experts.

web server based script to do OS things - CGI ?

46
Hey Guys

We have recently got an Apple xserve running OSX 10.4.

I am trying to learn about creating python apps that I can run within a web browser

I can to simple things such as 'print "Hello" etc...

But I want to run scripts that will create directories and move files that are on a Volume on the xServe.

When I try to do it now I get errors - i guess it is all to do with permissions / users / groups ??

the error log shows:
"premature end of script headers"


Any ideas on how to get up to speed on this and get it going?

Thanks for any help!

Adam
Sep 21 '07 #1
1 1024
ateale
46
i think I am making a bit more sense of it.

I CAN run a os.listdir('/blahblah')

But I CANNOT run a os.mkdir('/blahblah/test')

I am guessing it is because I need to somehow 'login' to my machine via the webbrowser to have permissions to do this?

I am totally clueless!

Thanks for any help!

Adam
Sep 21 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

8 posts views Thread by Michele | last post: by
12 posts views Thread by HarveyB | last post: by
15 posts views Thread by Michael Rybak | last post: by
12 posts views Thread by tshad | last post: by
5 posts views Thread by =?Utf-8?B?dXNmaW5lY2F0cw==?= | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.