
Command Monitor
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
Command Monitor is a tool that allows you to periodically execute a command and watch the results of it. For instance, if you want to scan for wireless networks using "iwlist eth1 scan" you have to repeat that command each time you want to see if there's a new one. This program does it for you.
Command Monitor also allows you to execute the commands in a remote host using an SSH connection. Now you can comfortably watch the number of Apache child processes of your server.
Read the INSTALL file in the package for installation instructions.
Requires libssh from Aris Adamantiadis for the SSH functionality.
dschulz
13 years ago
5 minutes ago I've downloaded & compiled Command Monitor successfully on ubuntu gutsy.
I noticed 2 issues:
* Before closing the app, I think you should wait until workerthread finishes, maybe invoking a stop() method (needs to be implemented) and then invoking wait().
You could simply accept() the QCloseEvent instead of qApp->quit()
-------------------------
void CommandMonitor::closeEvent(QCloseEvent *event)
{
if(m_workerThread->isRunning()){
m_workerThread->stop();
m_workerThread->wait();
}
event->accept();
}
--------------------------
I'm not completely sure, just ideas. This might stop buggin with the annoying "QThread: Destroyed while thread is still running" message.
* 2nd issue is the strange message from libssh-2 "Server specified invalid channel"
I'll try to fix someway..
Congratulations ;)
Report
infoneer
13 years ago
Thanks in advance for any assistance/insight you can provide me.
I'm working on a binding between libssh-0.2 and lua. Let me know if this is of any interest to you.
Report