pop
pop copied to clipboard
CRON: Error: could not open a new TTY: open /dev/tty: no such device or address
Describe the bug When using pop within a script which runs via cron, the error message occures:
Error: could not open a new TTY: open /dev/tty: no such device or address
To Reproduce Steps to reproduce the behavior:
vi /home/user/run.sh
#/bin/bash
pop --to [email protected] -s "Hello" -b "Hello" >> /home/user/email.log 2>> /home/user/email.err
crontab -e
* * * * * /home/user/run.sh
Expected behavior pop runs without a tty
Desktop (please complete the following information):
- OS: Linux