I have a shell script with the following content#!/bin/shsudo Rscript /home/username/RWD/test.Rsudo find /home/username/RWD -type f -name *.png -exec /usr/bin/mpack -s Test Mail {} my.email@provider.de \;sudo find /home/username/RWD -type f -name *.png -exec rm -f {} \;So I just execute a R script which produces an image file (*.png). This file is send via mail and deleted afterwards.This works fine when I execute the script in the command line. But when I use cron to schedule the script, the content of the mail is what R is printing in its console:Lade ntiges Paket: xml2Attache Paket: zooThe following objects are masked from package:base:   as.Date, as.Date.numericWarnmeldungen:1: Removed 3 rows containing missing values (geom_point). 2: Removed 5 rows containing missing values (geom_point).Any idea why the scheduled script behaves differently? 
Sending a mail inside a scheduled (cron) shell script does not work
cron;raspbian;ssmtp