My script.sh contains parameter expansion something like this
variable=${variable/PUT_CONTENT/$data}
This should replace the substring PUT_CONTENT with variable data. If I run the script manually in terminal like this: ./script.sh
everything works (also the replacing). But the command with replacing doesn't work when I put the script.sh into the crontab file. I need run the script every 5 minutes. - None of variable expansion doesnt work in script which is started by cron.
*/5 * * * * sh -c "/root/script.sh"