changed to unbeffered output
This commit is contained in:
4
index.js
4
index.js
@@ -137,7 +137,7 @@ async function startBot(accountName) {
|
||||
commandSuffix += ' --browser ' + process.env.BOT_BROWSER;
|
||||
}
|
||||
|
||||
let commandPrefix = `python ./Microsoft-Rewards-bot/ms_rewards_farmer.py --accounts-file ../accounts/${accountName}.json --dont-check-for-updates --shuffle --session --superfast --on-finish exit --no-webdriver-manager --skip-unusual`;
|
||||
let commandPrefix = `python -u ./Microsoft-Rewards-bot/ms_rewards_farmer.py --accounts-file ../accounts/${accountName}.json --dont-check-for-updates --shuffle --session --superfast --on-finish exit --no-webdriver-manager --skip-unusual`;
|
||||
consoleLog(`[${host}] Script started for ${accountName}`);
|
||||
|
||||
if (isRootUser()) {
|
||||
@@ -152,7 +152,7 @@ async function startBot(accountName) {
|
||||
return new Promise((resolve, reject) => {
|
||||
// const childProcess = spawn('bash', ['-c', `${commandPrefix} ${commandSuffix}`], { stdio: 'inherit' });
|
||||
const childProcess = spawn('bash', ['-c', `${commandPrefix} ${commandSuffix}`], {
|
||||
stdio: ['pipe', 'inherit', 'pipe'],
|
||||
stdio: ['pipe', 'pipe', 'pipe'],
|
||||
});
|
||||
|
||||
childProcess.stdout.on('data', (data) => {
|
||||
|
||||
Reference in New Issue
Block a user