/[projects]/smsdaemon/plugins/HostStatusPlugin.cpp
ViewVC logotype

Diff of /smsdaemon/plugins/HostStatusPlugin.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 137 by torben, Sun Dec 7 11:08:31 2008 UTC revision 142 by torben, Sun Dec 7 15:51:02 2008 UTC
# Line 16  void HostStatusPlugin::Execute(IGsmModem Line 16  void HostStatusPlugin::Execute(IGsmModem
16          string message;          string message;
17          string out;          string out;
18    
19            Util::my_system("hostname", &out);
20            message += out;
21    
22          Util::my_system("uptime", &out);          Util::my_system("uptime", &out);
23          message += out;          message += out;
24    
25          Util::my_system("df -h  | grep dev | awk '{ print $6 \" \" $5}'", &out);          Util::my_system("df -h  | grep dev | awk '{ print $6 \" \" $5}'", &out);
26          message += out;          message += out;
27    
28          modem.SendSms(sms.sender, message, true);          modem.SendSms(sms.GetSender(), message, true);
29                                    
30  }  }

Legend:
Removed from v.137  
changed lines
  Added in v.142

  ViewVC Help
Powered by ViewVC 1.1.20