Linux \ UNIX
cron의 터미널 환경?
-@m-
2021. 6. 9. 23:29
sudoers의 requiretty 옵션과 관련해,
tty, pts 에 대해 찾아보다
crontab 에서 실행되는 명령의 터미널 환경이 따로 존재할까 하는 의문이 들어
who am i 와 tty 명령어를 통해 확인해보았다.
tty 도 pts 도 아닌 듯 하다...
How to execute the command in cronjob to display the output in terminal
i have a query on cronjob , if i execute a command using cronjob is it possible to display the output in terminal rather than saving in output file . say for eg */2 * * * root /bin/ping xx.xx.xx...
unix.stackexchange.com
결론,
모든 cron작업은 비대화 형 쉘에서 실행되며 터미널 연결이 없다.. 고 한다.