View Single Post
thp's Avatar
Posts: 1,391 | Thanked: 4,272 times | Joined on Sep 2007 @ Vienna, Austria
#907
Originally Posted by plazmatics View Post
Hello
Tell me how to get the status of the SDK (SFTP and SSH)? I want to get into standby mode the number of clients that are connected at the moment.For python or bash.
Thank you.
Either simply use:

Code:
{script:who}
Or postprocess it a bit with Python to get nicer output:

https://github.com/harmattan/billboa...ted_clients.py

Note that it only updates every now and then, but using the most recent version of Billboard allows you to e.g. put the battery charge in there (e.g. as a command line parameter that is not used), so that it updates more often.

Feel free to customize it to your needs. HTH