FRIHOST • FORUMS • SEARCH • FAQ • TOS • BLOGS • COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


problem with python's os.mkdir in cgi test





velcrobandits
I put a script on my own cgi python server ( not this one cuz they havent approved my hosting yet). Anyway, when I ssh to this host and run the mkdir script, it works fine. However, when I call this command from a .py on the web it doesnt work. Im not sure how to fix this. Is this a permissions issue? Every other file i/o seems to work. Does anyone know what the problem might be?
deepak
No, it is not IO problem. First, When you log-in and work via ssh then you're an authenticated user and you may have right to write the content in directory. However, when you access .py then you're an anonymous user. Second, make sure about permissions. If your second host is Source forge then you don't have right to write a file even in cgi-bin.

Good Luck!
Related topics
Russia tests missle to penetrate US defenses
What operating system do you use?
PC startup
Weirdest problem I have ever seen
Python beginners help!
How poor my friend are :(
help i cant record a sound !
[juer] Juego de l๓gica
Jython: os.chdir()
What is the difference between CGI and python script?
HP psc 750 - Scanner Failure problem
Physics Problem.
Python support
Python and SQLite
Reply to topic    Frihost Forum Index -> Scripting -> Others

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.