On Mon, Apr 20, 2015 at 10:31 AM, David Pineda <daha...@gmail.com> wrote: > 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?
You could specify the full path to the commands in your script, e.g.: /usr/bin/sed, or where every they are on your system. -- 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/CACwCsY74M2XCvuuYkHnqJr8sUNQyJ9Y69%2BUVUoisUTGL%2BSLRCw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.