crontab is ok, but problem in code
I have a script test.sh which is excuted every 15 minutues,
I resieve email evrey 15 minutes with the content of output of ls command
the problem when i add this command to the script.
echo "$myvar " >> my.txt
my.txt file doesn't change at all, in another words, the content of $myvar doesn't dump to my.txt file.
and if I changed it to
it dumps the content to the email.
can you help me in this, i want the content of the script file which is run by crontab to dump the contents to the file.