2
#include "config/config"
4
int sysrun(string const &s) {
5
int ret = system(s.c_str());
7
warnmsg(Mstr("Failed to start command: ") + s + "\n");
11
int stat = WEXITSTATUS(ret);
13
warnmsg(Mstr("Command" ) + s +
14
Mstr(" exited with status ") + Mstr(stat) + "\n");
16
msg(Mstr("Command ") + s +
17
Mstr(" terminated normally.\n"));
20
warnmsg(Mstr("Command ") + s + Mstr(" failed miserably!\n"));