Hello I'm a begginner in django and i need to work with a form (send a file) and when the file it's ok run a bash scripts to process that.
I investigate and the common recomendation si use 'subprocess' an 'sys' So, i can set the path with de bash app, but the system only recognize the 'echo' command but the another like grep, awk or sed they say 'command not found'. eg: "home/david/Documents/WEB_PROJ/gestion_docs/procesa_fl/procesa_sse/extrac_data_oficial.sh: line 70: xlsx2csv: command not found /home/david/Documents/WEB_PROJ/gestion_docs/procesa_fl/procesa_sse/extrac_data_oficial.sh: line 71: xlsx2csv: command not found /home/david/Documents/WEB_PROJ/gestion_docs/procesa_fl/procesa_sse/extrac_data_oficial.sh: line 72: sed: command not found /home/david/Documents/WEB_PROJ/gestion_docs/procesa_fl/procesa_sse/extrac_data_oficial.sh: line 73: sed: command not found /home/david/Documents/WEB_PROJ/gestion_docs/procesa_fl/procesa_sse/extrac_data_oficial.sh: line 74: sed: command not found /home/david/Documents/WEB_PROJ/gestion_docs/procesa_fl/procesa_sse/extrac_data_oficial.sh: line 77: awk: command not found /home/david/Documents/WEB_PROJ/gestion_docs/procesa_fl/procesa_sse/extrac_data_oficial.sh: line 77: sed: command not found /home/david/Documents/WEB_PROJ/gestion_docs/procesa_fl/procesa_sse/extrac_data_oficial.sh: line 79: sed: command not found" So, i think the bin path it loose when i run from django, and in this point i'm confused. How to solve it? Thanks, very thanks! -- David A. Pineda Osorio F:+56 9 82142267 Ingeniero Civil Electricista Universidad de Chile *http://www.cultura-libre.cl/ <http://www.cultura-libre.cl/>* -- 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/CAAn3imzaozSL-dGPT_U30AP_X4rqVx5cTFV1PMusE81nApHM_Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.