I'm running a script using cron job every Sunday night on my Linux PC. When I log in as root I would like the output of this last script execution to be displayed.
Here is a script msg.sh:
#!/bin/bash
if [ -e /user/script/$start.sh ]
then
echo " starting service "
else
echo " service not started "
echo " Please check the start.sh file or manually start the service "
fi
exit 0
Its output:
starting service
or
service not started
Please check the start.sh file or manually start the service
How can I make this output appear when I log in?