Re: Successfully Running Command Line Application from Django

2011-08-17 Thread octopusgrabbus
Thanks for the answer. It fixed the problem. On Ubuntu it was www-data user and on Red Hat Enterprise 5, it was apache user, who were trying to write in amr's directory. I put each user into amr's group on their respective systems. All is well. On Aug 15, 4:26 pm, wayne wrote: > On Aug 15, 2:40

Re: Successfully Running Command Line Application from Django

2011-08-15 Thread wayne
On Aug 15, 2:40 pm, octopusgrabbus wrote: > I get a file permissions error, and this is running on Apache. > > It's dying on the retrbinary line. However, it's logging in using > valid user names and passwords, so I'm confused as to why it's dying. Yes, but it looks as though you are passing a ca

Re: Successfully Running Command Line Application from Django

2011-08-15 Thread octopusgrabbus
I get a file permissions error, and this is running on Apache. It's dying on the retrbinary line. However, it's logging in using valid user names and passwords, so I'm confused as to why it's dying. def getInvRpt(id, filename, path, db): file_list = [] os.chdir('/home/amr/ics_in/') f

Re: Successfully Running Command Line Application from Django

2011-08-15 Thread wayne
What error exactly do you get? Do you encounter this error while using runserver, or is it live on a web server (Apache et al)? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com.

Successfully Running Command Line Application from Django

2011-08-15 Thread octopusgrabbus
My Django application successfully executes functions belonging to user amr. I want to execute an external command line application from views.py def exec_external_cmd(cmd_line): retcode = None try: process = Popen(cmd_line, bufsize=2048, executable="/bin/ bash", shell=True, stdout