found 2 things happening,  some one move the file, second of all the 
subprocess stdout spits a tuple of tuples =( (that was trick thing to find.)
thanks guys.


On Tuesday, March 31, 2015 at 2:03:08 PM UTC-5, JirkaV wrote:

> It's very likely that the actual user running the webserver process(es) 
> does not have "ping" on the executables path...
>
> HTH
>
> Jirka
> ------------------------------
> *From: * dk <dem...@gmail.com <javascript:>> 
> *Sender: * django...@googlegroups.com <javascript:> 
> *Date: *Tue, 31 Mar 2015 08:12:03 -0700 (PDT)
> *To: *<django...@googlegroups.com <javascript:>>
> *ReplyTo: * django...@googlegroups.com <javascript:> 
> *Subject: *Re: subprocess behave diferent in the server than in the 
> client.
>
> playing a littlie bit more, I found out that does work if I am using the 
> manage.py runserver.
> but doesn't work using the production django =(.
>
>
>
> On Monday, March 30, 2015 at 5:53:59 PM UTC-5, dk wrote:
>
>> hi, I have a button in my webpage that lunch a subprocess and check the 
>> ping of the computer and save the information in a text file. that's it,  
>> very basic stuff.
>>
>> If I am doing my click in the server computer  everything works,
>> the subprocess will ping the computer, make the file and save the 
>> information. 
>> and go back the corresponding view.
>>
>>
>> but if I do it from a client computer,  does all the script,  return the 
>> view that needs to return, but it never lunched the subprocess =(.   is 
>> like that line was commented or something doesn't even complain or spits 
>> errors =(
>>
>> have any one got an issue like this?
>>
>  -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to django-users...@googlegroups.com <javascript:>.
> To post to this group, send email to django...@googlegroups.com 
> <javascript:>.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/bb43b536-352e-4eb0-b32a-485860d19e13%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/django-users/bb43b536-352e-4eb0-b32a-485860d19e13%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d0d7bd17-f949-4e35-9858-4ca5c5122733%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to