Search Results

Search: Posts Made By: darkphaux
Forum: Web Development 12-21-2008
5,675
Posted By darkphaux
passing variables to python script
Hello again,
You guys might remember me from the "Apache problems" thread. And because this forum is the only one that actually helped me out after months of problems I was hoping you could help me...
Forum: Web Development 12-15-2008
21,500
Posted By darkphaux
Well, this can be closed now. Thanks to everyone...
Well, this can be closed now. Thanks to everyone who posted and helped out. This was a difficult problem that no one on other forums could help me with. So I thank you guys a lot.
Forum: Web Development 12-15-2008
21,500
Posted By darkphaux
Well. This works. Damn. That is awesome. I...
Well. This works. Damn.

That is awesome. I don't supose you would shed some light into how you did that?
Forum: Web Development 12-15-2008
21,500
Posted By darkphaux
Yeah, but I just posted the enire script. There...
Yeah, but I just posted the enire script. There are no carriage returns in the entire thing.
Forum: Web Development 12-14-2008
21,500
Posted By darkphaux
There are two carriage returns in the print...
There are two carriage returns in the print command. But those where added in after you told me to add them.

#!/usr/bin/python
print "Content-type: text/html\n\n"

import os

def main():
# ...
Forum: Web Development 12-14-2008
21,500
Posted By darkphaux
I just use Nano becuse it is simple. ...
I just use Nano becuse it is simple.


0000000 # ! / u s r / b i n / p y t h o
2123 752f 7273 622f 6e69 702f 7479 6f68
0000020 n \r \n \0
...
Forum: Web Development 12-14-2008
21,500
Posted By darkphaux
I did that and it returns with the same error...
I did that and it returns with the same error except no carriage return in the error.
Forum: Web Development 12-14-2008
21,500
Posted By darkphaux
Alright I did that. And I am using a local...
Alright I did that. And I am using a local editor.

Alright this is odd. When I enter the path to run the file under my normal user account here is the output:

$ /usr/lib/cgi-bin/carternet.py...
Forum: Web Development 12-14-2008
21,500
Posted By darkphaux
So what should it look like after it is edited?
So what should it look like after it is edited?
Forum: Web Development 12-14-2008
21,500
Posted By darkphaux
0000000 # ! / u s r / b i n ...
0000000 # ! / u s r / b i n / p y t h o
2123 752f 7273 622f 6e69 702f 7479 6f68
0000020 n \r \n \0
0d6e 000a
0000023
Forum: Web Development 12-14-2008
21,500
Posted By darkphaux
lrwxrwxrwx 1 root root 9 2008-10-14 22:10...
lrwxrwxrwx 1 root root 9 2008-10-14 22:10 /usr/bin/python -> python2.5
Forum: Web Development 12-14-2008
21,500
Posted By darkphaux
/usr/lib/cgi-bin/carternet.py: not found ...
/usr/lib/cgi-bin/carternet.py: not found

This occurs no matter what user tries to execute it.
Forum: Web Development 12-14-2008
21,500
Posted By darkphaux
Yes I am using stub values. But I can not run the...
Yes I am using stub values. But I can not run the script without the 'python' before the path
Forum: Web Development 12-14-2008
21,500
Posted By darkphaux
Command ran just fine under the www-data user. I...
Command ran just fine under the www-data user. I know using 777 is a huge security hole -especially in the cgi-bin- but once I have this problem fixed I will patch that security hole. This server is...
Forum: Web Development 12-14-2008
21,500
Posted By darkphaux
Wouldn't it not matter what user I run it under...
Wouldn't it not matter what user I run it under due to it having 777 permissions. But to be sure could you give me the command to run the program under the www-data account?
Like I can run it under...
Forum: Web Development 12-14-2008
21,500
Posted By darkphaux
I just commented the lines with the raw_input()...
I just commented the lines with the raw_input() becasue I knew they would create problems.

And yes it works just fine through the command line.
Here is the output:


carter@ubuntu-Server:~$...
Forum: Web Development 12-14-2008
21,500
Posted By darkphaux
ls -l /usr/lib/cgi-bin/carternet.py: ...
ls -l /usr/lib/cgi-bin/carternet.py:

-rwxrwxrwx 1 root root 409 2008-12-14 00:49 /usr/lib/cgi-bin/carternet.py


head -n 1 /usr/lib/cgi-bin/carternet.py:

#!/usr/bin/python
Forum: Web Development 12-14-2008
21,500
Posted By darkphaux
Well, I had acctually cleared the error log just...
Well, I had acctually cleared the error log just a short while ago, but here is what it is saying:

[Sun Dec 14 00:53:57 2008] [error] [client 192.168.1.65] (2)No such file or directory: exec of...
Forum: Web Development 12-14-2008
21,500
Posted By darkphaux
Still not working.
Still not working.
Forum: Web Development 12-14-2008
21,500
Posted By darkphaux
Alright. Here is the full script that I am...
Alright. Here is the full script that I am running:

#!/usr/bin/python
print "Content-type: text/html"
import os

def main():
username = raw_input ("Enter new username: ")
password =...
Forum: Web Development 12-13-2008
21,500
Posted By darkphaux
Yeah, sorry, I didn't realize the script was cut...
Yeah, sorry, I didn't realize the script was cut off, although it seemed to only be cut off when I posted here (The actual script on the box is fine). I also thought it was a permissions problem but...
Forum: Web Development 12-13-2008
21,500
Posted By darkphaux
Apache Problems.
Hello guys

I have been running a LAMP stack for awhile now but have never really explored the server side end of things. What I am trying to do is have a python script on a website run a bash...
Showing results 1 to 22 of 22

 
All times are GMT -4. The time now is 08:07 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy