I have a problem with the script. The first part of it is done correctly, but unfortunately sending an email does not work.
#!/bin/sh
python3 script_x.py && echo -e "Results" | mailx -a /directory/directory/results.txt -A gmail -s "Results" mymail@gmail.com
If I use only the echo part, it works fine and the email is sent to my inbox.
Any suggestions?