I have a directory which is generated at run time which looks something like this..
"2011 03 23 11 41 AM" which has a log file "log file.log". To read the "log file.log" I am doing the following in my perl script..
$out = `ls /home/anand/exinda/automate/tests/SwiftTest//tc001246/Results`;
# Adding double quotes before the directory names because of the space delimiter problem in linux
$o = `ls \"/home/anand/exinda/automate/tests/SwiftTest//tc001246/Results/$out\"`;
But i get the followin error..
anand@anand-OptiPlex-980:~/exinda/automate/tests/SwiftTest/tc001246$ perl test.pl
5_4_2011 9-59-54 AM
ls: cannot access /home/anand/exinda/automate/tests/SwiftTest//tc001246/Results/5_4_2011 9-59-54 AM
: No such file or directory
I am not sure how to achieve this.. Please help.