Folks;
I have this script in SUN which if i run it using command line, it works fine, but when i run it using cron, it work but it misses one thing. here's the details
#!/bin/bash
cd /opt/new_script
for i in ./report*Groups.sh; do $i $1; done
This script above when runs through cron, it runs all groups that start with "report" & end with "Groups.sh except for one group that named "reportKKGroup.
Maybe a typo in your question, but you have reportGroups.sh, whereas the offending script that is not running in reportGroup.sh (substitute KK for *), in other words - without the last letter "s", your wild-card substitution won't work , right ?