Thanks Chromatic.
I changed this line as said :
my $files=system(qq(cd /waslogs1/vfoneLog/cposapp && ls -lrt | grep -i "$grep_date" | awk '{ print \$9 }' > /home/cpos/CRM_Reports/timelogic/filelist.txt));
Its working now.
But can you explain me what was the problem with previous line.
And what if I use :
my $cmd=q(cd /waslogs1/vfoneLog/cposapp && ls -lrt | grep -i "$grep_da
+te" | awk '{ print $9 }' > /home/cpos/CRM_Reports/timelogic/filelist.
+txt);
my $files=system($cmd);
This is still not working |