Running bash script on server from django

309 Views Asked by At

Is there a way to run a bash script at /home/dotcloud/current/app_name from within django? The file I'm trying to run is there, but I'm getting an OS error saying the file doesn't exist. I think it is something to do with the environment that django runs within on the dotcloud servers.

1

There are 1 best solutions below

0
On BEST ANSWER

With @KenCochrane 's answer I had a closer look, and eventually figured out that it was Windows line ending conventions that were causing the problem (originally developed the script directly on the server and it was fine, but line conventions got switched when I copied the contents of the script and create a file which was then pushed to the server).