Klucí ještě poslední prosba, abych tu zbytečně nezakladal další topík.
#!/bin/bash
mailinfo = echo "This is a test" | mail -a "From: xxx1@seznam.cz" -s "Test" xxx1@seznam.cz;
echo $mailinfo;
if [$mailinfo = "mail: cannot send message: Process exited with a non-zero status"];
then
echo neodeslo;
else
echo odeslo;
fi
Fungovat to funguje ale vyhazuje to řádek 7: [: postrádám ,,]"