I solved this. I had missed out one "/" after bin.
Thanks,
Shiva.
--- In wlshell@yahoogroups.com, "shivashankarst"
<shivashankarst@...> wrote:
>
> Hi All,
>
> My perl script contains:
> system("$ENV{WLSHELLHOME}/bin wlsh.sh -f version.wlsh >
version.txt");
>
> where the WLSHELLHOME variable is defined (checked it using echo).
> When I exeucte the above script, I get the below msg:
> "sh: /export/home/perfuser/wlshell/bin: cannot execute".
>
> But, when i just execute wlsh.sh -f version.wlsh > version.txt
> separately at the console (w/o perl), it goes thru fine.
>
> Thanks,
> Shiva.
>