#!/bin/bash
ddd=$(date +%Y-%m -d "-1 month")
xmessage -timeout 10 $ddd
If I try this simple script I get this to work fine from terminal but when I start this script via cron the variable is always empty? I have tried many different syntax but the result is the same. Works in Terminal but not from cron.