It is not necessarily a bad idea. He is not saying he wants to run an arbitrary command. If the command is, for example, "ls -l > mydir" you can run it with
import os os.system("ls -l > mydir") There are some caveats: - do not run the commands that can take long time otherwise - consider using the scheduler - it may be a security hazard to run arbitrary commands On Tuesday, 18 November 2014 04:06:28 UTC-6, Leonel Câmara wrote: > > This is a very very bad idea, it's also a python question not a web2py one > (it's possible btw), what are you trying to accomplish? > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.