I have a script which shells itself. Within the script is
a command ADWENV="${ADWENV:-$(dirname $0)/adwenv}". This command works okay if the script is submitted via cron, but during the execution of the script from the 'at' scheduler it abends. UX:sh: ERROR: /ADW/dev01/bin/rdp-shellself1.sh: $(dirname: not found
a command ADWENV="${ADWENV:-$(dirname $0)/adwenv}". This command works okay if the script is submitted via cron, but during the execution of the script from the 'at' scheduler it abends. UX:sh: ERROR: /ADW/dev01/bin/rdp-shellself1.sh: $(dirname: not found