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

Diff of /smsdaemon/plugins/ShellExecPlugin.cpp

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

revision 56 by torben, Wed Jun 11 15:55:18 2008 UTC revision 90 by torben, Mon Jun 16 10:21:02 2008 UTC
# Line 1  Line 1 
1  #include "ShellExecPlugin.h"  #include "ShellExecPlugin.h"
2  #include "GsmModem.h"  #include "IGsmModem.h"
3    #include "Sms.h"
4    
5  #include "util.h"  #include "util.h"
6    
# Line 27  void ShellExecPlugin::Execute(IGsmModem& Line 28  void ShellExecPlugin::Execute(IGsmModem&
28                  command += " ";                  command += " ";
29                  command += parameters;                  command += parameters;
30          }          }
31          int retval = ::system( command.c_str()  );          int retval = Util::my_system( command.c_str()  );
32    
33          std::string message;          std::string message;
34          if (retval == -1)          if (retval == -1)
# Line 35  void ShellExecPlugin::Execute(IGsmModem& Line 36  void ShellExecPlugin::Execute(IGsmModem&
36          else          else
37                  message = "OK";                  message = "OK";
38                    
39          modem.SendSms(sms.sender, message );          modem.SendSms(sms.sender, message, false );
40  }  }

Legend:
Removed from v.56  
changed lines
  Added in v.90

  ViewVC Help
Powered by ViewVC 1.1.20