hy!
I would like to use a programm that should email a file if it exists.
The problem is:
I would like the programm to end at once if no file exists in a special dir.
Something like:
$dir = \home\mailfiles
if filecount.$dir = 0 then exit else
zip mail.zip $dir/*
mutt
mail@somebody.com -s "subject" -a mail.zip < /tmp/mutt-linux-19305-0
Can someone help me ?
Thanks