-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi, List!
OpenBSC saves his DB normally in the current directory, but I can overwrite this property with -l. Now I'd like to know WHERE OpenBSC created the DB, and what is his name. Is it possible?
I searched in the telnet's commands but I found anything useful...
Thanks a lot - -- _______________________________________________________________________ Luca Bertoncello Entwicklung Mail: bertoncello@netzing.de
NETZING Solutions AG Tel.: 0351/41381 - 0 Kesselsdorfer Str. 216, 01169 Dresden Fax: 0351/41381 - 12 HRB 18926 / Ust.ID DE211326547 Mail: netzing.ag@netzing.de _______________________________________________________________________
Hi,
OpenBSC saves his DB normally in the current directory, but I can overwrite this property with -l. Now I'd like to know WHERE OpenBSC created the DB, and what is his name. Is it possible?
If the process is still running, you can inspect the open file descriptors in /proc/xxx/fd or with the lsof utility.
Cheers,
Sylvain
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Am Mon, 21 Jun 2010 16:00:41 +0200 schrieb Sylvain Munaut 246tnt@gmail.com:
If the process is still running, you can inspect the open file descriptors in /proc/xxx/fd or with the lsof utility.
Of course, I can do it, but I hoped there is a "native method" in OpenBSC, to get this value...
In bsc_hack.c I see the variable "database_name" is global. It should not be difficult to create a telnet command to inspect this value, or to give it in the output other commands (show?).
Bye - -- _______________________________________________________________________ Luca Bertoncello Entwicklung Mail: bertoncello@netzing.de
NETZING Solutions AG Tel.: 0351/41381 - 0 Kesselsdorfer Str. 216, 01169 Dresden Fax: 0351/41381 - 12 HRB 18926 / Ust.ID DE211326547 Mail: netzing.ag@netzing.de _______________________________________________________________________
On 06/21/2010 09:53 PM, Luca Bertoncello wrote:
Hi, List!
OpenBSC saves his DB normally in the current directory, but I can overwrite this property with -l. Now I'd like to know WHERE OpenBSC created the DB, and what is his name. Is it possible?
I searched in the telnet's commands but I found anything useful...
you will have to do: ls -la /proc/`pidof bsc_hack`/fd/
and find the fd for sqlite, adding a vty command for printing the databasename should not be that hard either.