Executing a shell

Denis LE FUR <[email protected]>
Newsgroups gmane.comp.python.cherrypy
Message-ID <[email protected]>
Hello,

I try within a project to execute a shell with the  command :

*os.system("sh scripts/file.sh")*

Answer :

*scripts/file.sh not found *

The only way I managed to do it is putting the shell file in the static 
part :

*os.system("sh /static/scripts/file.sh")*

How to avoid that ?

Thank you.

-- 
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cherrypy-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
To post to this group, send email to cherrypy-users-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
Visit this group at https://groups.google.com/group/cherrypy-users.
For more options, visit https://groups.google.com/d/optout.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.