Re: Subprocess module in Python CGI

2009-01-08 Thread Anurag
Hello Kenneth, Thank you for your suggestion. This was helpful to remove a sort of redundancy in my program but removal of '\' still does not solve my problem as the Error displayed remains exactly the same. Any other suggestions? Once again thank you so much for your valuable time. Regards.

Re: Subprocess module in Python CGI

2008-12-23 Thread Kenneth Gonsalves
On Monday 22 Dec 2008 4:21:31 pm Anurag wrote: > comd = [\ >         "tar -xf x.tar.gz", \ nothing to do with python: [law...@localhost programs]$ tar -xf x.tar.gz tar: x.tar.gz: Cannot open: No such file or directory tar: Error is not recoverable: exiting now btw, there is no need to put '\'

Re: Subprocess module in Python CGI

2008-12-23 Thread Anurag
I have also missed out a last line at the end of the Traceback ... this may be important in fishing out the error. The last line is: OSError: [Errno 2] No such file or directory Looking forward to some kind of suggestions. Thanking you all once again and with Regards. On Dec 22, 11:51 am,

Subprocess module in Python CGI

2008-12-22 Thread Anurag
Hello, I have started using python recently and would like to call a short python script via browser using a CGI script, but initially I am trying to call the same python script directly through python command line. The script intends to perform a few command line in a pipe and I have written