os.system() not responding on django... any reason?
marduk at python.net
marduk at python.net
Fri Mar 1 09:59:34 EST 2013
On Fri, Mar 1, 2013, at 09:24 AM, Roy Smith wrote:
> In article <4fcc93b7-3be9-416f-a2d4-bdc6cba2133e at googlegroups.com>,
> Jaiky <jaiprakashsingh213 at gmail.com> wrote:
>
> [a lot of code involving ssh and paramiko]
>
> Here's a few general suggestions:
>
> 1) Try to reduce this to the smallest possible amount of code which
> demonstrates the problem. You gave us a page full of complicated stuff.
> Keep hacking away lines of code that don't change the behavior until you
> get it down to something small and understandable.
>
> 2) Try to eliminate environmental problems. You're running this under
> django? Does it work as a stand-alone process (i.e. without django)?
Also, what is the context (Is it running in a Django view; a model? a
signal handler? in settings?)?
More information about the Python-list
mailing list