Re: [basex-talk] Get session config info
Hi Christian Do you mean a basex admin, a sys admin, or something else? Thanks Op 20 apr. 2017 13:41 schreef Christian Grün <christian.gruen@gmail.com>: Hi Bram, Users with admin permissions can request the database path via "db:system()//dbpath". Hope this helps, Christian On Wed, Apr 19, 2017 at 2:13 PM, Bram Vanroy <bram.vanroy1@student.kuleuven.be> wrote:
Hi List
In a .basex file we can set the destination of our database. If we then create a server, and create a database using a client, the BaseX-files will be created in that directory. Is it possible to get the path to this directory from within the client? In Perl I tried running the following command after looking through the basex client, but I got an ‘undef’:
my $session = Session->new($host, $port, $user, $pw);
my $t = $session->info;
$session->close;
print $t;
Any ideas how to get the configuration values for a basex server from a (Perl) client?
Thank you
Bram
Hi Bram, I am talking about BaseX users. By default, you are an admin user (see [1] and related pages for more information). Cheers, Christian [1] http://docs.basex.org/wiki/User_Management On Thu, Apr 20, 2017 at 3:18 PM, Bram Vanroy <bram.vanroy1@student.kuleuven.be> wrote:
Hi Christian
Do you mean a basex admin, a sys admin, or something else?
Thanks
Op 20 apr. 2017 13:41 schreef Christian Grün <christian.gruen@gmail.com>:
Hi Bram,
Users with admin permissions can request the database path via "db:system()//dbpath".
Hope this helps, Christian
On Wed, Apr 19, 2017 at 2:13 PM, Bram Vanroy <bram.vanroy1@student.kuleuven.be> wrote:
Hi List
In a .basex file we can set the destination of our database. If we then create a server, and create a database using a client, the BaseX-files will be created in that directory. Is it possible to get the path to this directory from within the client? In Perl I tried running the following command after looking through the basex client, but I got an ‘undef’:
my $session = Session->new($host, $port, $user, $pw);
my $t = $session->info;
$session->close;
print $t;
Any ideas how to get the configuration values for a basex server from a (Perl) client?
Thank you
Bram
participants (2)
-
Bram Vanroy -
Christian Grün