when I login into the environment, I just type DEV6 on the command line and this sources the environment variables.
Now I would like to excute DEV6 within a start of a script. SO if you logged into the environment first time round and you forgot to type DEV6 on the command line, the script would take care of this.
You will have to set the environment in this script, not in a script called from this one.
Does your script have the expected environment (PATH, etc.) at all? If it is called from cron then the envronment is guaranteed to be radically different from your login environment.
Second: it seems that "DEV6" is starting all right, but *it* encounters an error, not the script you showed us. What the error in a script we do not know is is hard to guess, my crystal sphere is undergoing maintenance right now.
Post the script and we might find problems with it, otherwise you will have to search and debug for yourself.