From: Glenn Jackman on
At 2010-06-23 05:48AM, "Uwe Klein" wrote:
> Sooraj S wrote:
> > Thanks for your reply.But I'm not tokenising the command. I want to
> > send the command as such from my perl script. Is it possible to accept
> > it in my expect script?
> >
> > -----
> > $command = "abc -option1 op1 -option2 op2"
> > system("./my_expect $command");
> > ----
> no idea, I'm not a perlite ;-)
>
> what about
>
> system("./my_expect \"$command\"");

Would be better to use: system("./my_expect", $command);

--
Glenn Jackman
Write a wise saying and your name will live forever. -- Anonymous