exec sudo xmrig --user=${POOLUSER} --url=${POOLURL} ${PASSOPTS} ${THREADOPTS}…
- User
exec sudo xmrig --user={POOL_URL} {THREAD_OPTS} --coin=monero --cpu-priority=DONATE_LEVEL ${OTHERS_OPTS}
- Assistant
To output the logs of the command
sudo xmrigto both/logs/main.logand the docker logs, you can use the following modified command:bashexec sudo xmrig --user=${POOL_USER} --url=${POOL_URL} ${PASS_OPTS} ${THREAD_OPTS} --coin=monero \ --cpu-priority=${CPU_PRIORITY} \ --donate-level=$DONATE_LEVEL \ ${OTHERS_OPTS} \ &> >(tee /logs/main.log)This command uses the
teecommand to both display the output on the console and redirect it to/logs/main.log. The&>is used to capture both stdout and stderr.To see the docker logs, you need to make sure that stdout and stderr are attached to the container. You can achieve that by using the
docker logscommand to view the logs:bashdocker logs <container_name_or_id>Replace
<container_name_or_id>with the actual name or ID of your container.By running the
docker logscommand, you should be able to see the logs of the container, including the output of the command.