Thanks for replying.
the basic is .. i need to check the file wheather it is present or not..
In input file i am passing for no of files path like given below;
To read the file i am using $data arugment.
the input should be check the file with ls command
and output stored into $result using "$expect_out(buffer)"
Once the ls command is done, then i need to compare the $result and $data.
Originally Posted by jlinkels
Please provide examples of which strings are supposed to match, and strings which should not match. Also the contents of $data.