Door: Redirect output to logfile
And use nohup for detached call. Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
This commit is contained in:
parent
c058e1e4d0
commit
951e1de987
|
@ -203,6 +203,6 @@ void Door::setDoorCallback(DoorCallback doorCallback)
|
|||
|
||||
void Door::_exec_and_log(const std::string &filename)
|
||||
{
|
||||
const std::string cmd = filename + " &";
|
||||
const std::string cmd = "nohup " + filename + " &>> " + _logfile_scripts;
|
||||
::system(cmd.c_str());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue