Как создать логи create_ap, перейдите в /var/log/create_ap.log?

Я использую сценарий create_ap для создания точки доступа из моих настольных ПК Адаптер Wi-Fi.

sudo create_ap wlp3s0 eno1          
0
задан 27 July 2020 в 13:04

1 ответ

Destination of pipes and redirections aren't affected if the source part has sudo or not. It's like two different commands.

To solve that, you can encapsulate the whole command into an elevated shell:

sudo sh -c "create_ap wlp3s0 eno1 'p455w0rD' >> /var/log/create_ap.log"
1
ответ дан 30 July 2020 в 22:02

Другие вопросы по тегам:

Похожие вопросы: