in reply to excute a command line

If $REE is an environment variable make sure you export it. It may be available to you from the command line but not available to your script. (actually to the sub-shell created by the system which is a sub-shell of the shell running perl which is a sub-shell of the command-line shell). You may also need to escape the $ so it gets passed to the system and not interpolated as a perl variable. Of course everyone uses strict catch those kind of things, don't they?

--

flounder