Commit 3846d45b by softwhiskey8

вернул на место

1 parent c3ec0c00
Showing with 3 additions and 4 deletions
...@@ -152,8 +152,8 @@ async function main() { ...@@ -152,8 +152,8 @@ async function main() {
//let cmd = String.raw`cd E:/work/projects2/telegram-channel-sender/ //let cmd = String.raw`cd E:/work/projects2/telegram-channel-sender/
//dotnet telegram-channel-sender.dll 3 79112349232 ${args['channel_type']}`; //dotnet telegram-channel-sender.dll 3 79112349232 ${args['channel_type']}`;
var cmd = `cd /servers/constructor/htdocs/api/ && php telegram-channel-sender.php ${events_owner} ${process.argv[2]} ${args['channel_type']}`; var cmd = `cd /servers/constructor/htdocs/api/ && php telegram-channel-sender.php ${events_owner} ${process.argv[2]} ${args['channel_type']}`;
var tgProc = exec(cmd);//, (error, stdout, stderr) => { exec(cmd, (error, stdout, stderr) => {
/*if (error) { if (error) {
console.error(`error: ${error.message}`); console.error(`error: ${error.message}`);
return; return;
} }
...@@ -164,8 +164,7 @@ async function main() { ...@@ -164,8 +164,7 @@ async function main() {
} }
console.log(`stdout:\n${stdout}`); console.log(`stdout:\n${stdout}`);
});*/ });
process.kill(tgProc.pid);
}); });
await app.start(); await app.start();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!