I am trying to automate ClearCase check-ins via a ksh script. There is a strange issue where the following command will not run while it's part of the automation script, but runs fine if I paste it into the command line.
Snippet of script:
for dir in `cat $DIRS`
do
    RUNCMD="cleartool find <<vob_directory>>/$dir -type f -exec 'cleartool co -nc \$CLEARCASE_PN'"
    print $RUNCMD
    $RUNCMD
done
exit 1
produces the following command
cleartool find <<vob_directory>> -type f -exec 'cleartool co -nc $CLEARCASE_PN'
Here's the error
cleartool: Error: Extra arguments: "co"
Usage: find { pname ... [-depth | -nrecurse | -directory]
        | [pname ...] -all [-visible | -nvisible]
        | -avobs [-visible | -nvisible]
        }
        [-name 'pattern']
        [-cview]
        [-user login-name]
        [-group group-name]
        [-type {f|d|l}...]
        [-follow]
        [-kind object-kind]
        [-nxname]
        [-element query]
        [-branch query]
        [-version query]
        {-print | -exec command-invocation | -ok command-invocation} ...
What am I doing wrong here?