Thanks for the quick answer.
This action will then require to have the web2py.py installed on the
remote client, do I guess well ?
How to specify than the shell for execution is the one of the server,
where the application is installed ?
Can I add arguments on "yourscript.py" like : -R "yourscript.py -o
option1 -x option2" ?
thanks again



On 5 août, 22:56, mdipierro <[email protected]> wrote:
> Yes.
>
> you can run
>
>     python web2py.py -S youapp -M -R yourscript.py
>
> and yourscript will run as is it were a controller and will see you
> database connections and models.
>
> Try
>
>     python web2py.py -h
>
> for help.
>
> On Aug 5, 1:12 pm, gabriel <[email protected]> wrote:
>
> > Hi there,
>
> > we're making some thoughts to develop an application based on web2py
> > (a kind of tracking system). In this frame, we'd like to be able to
> > query the database in a way that other applications can interact with
> > it. For example, it would be nice to have the possibility to launch
> > such a command line from a remote client:
>
> > remotecmd -d database_path -u user -p password -r query -o output_file
> > -f format
>
> > where
> > * database_path : path to reach the database
> > * user and password : identification of the user, so the application
> > can take into account its priviledges
> > * query : the query to the database (expressed in the web2py format)
> > or a file containing a function to run (for complex queries, where a
> > simple SQL like request is not sufficient). The query would be either
> > to update or just read the content of the db.
> > * output_file and format (to be discussed) : where and how (csv,
> > xml, ...) to display the result
>
> > Is the framework web2py able to propose such a feature ?
>
> > the remote client could be the Eclipse environment for example :
> > useful for developper, heavy for manager that only like to have the
> > webinterface
>
> > many thanks
>
> > gabriel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to