amoura has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: excute a command line
by Massyn (Hermit) on Aug 07, 2002 at 15:07 UTC
    What is $REE? That may through you a little... Also depends on where you do it from. If $REE is an environment variable, you may want to get that first. Also your " may be confusing the command as well.. Use \" instead. Try
    $REE = $ENV{REE}; system("cbsfpfg `echo \"esel\"$REE esel`");
Re: excute a command line
by flounder99 (Friar) on Aug 07, 2002 at 16:39 UTC
    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