Hi All, I am doing Pattern matching of the expected string if matched then pass the next command.my code works as expected but gives warning.
can any body please Explain me why i am getting this at every match. ignoring bad Prompt argument "'/>>/'": missing opening delimiter of match operator at linux_diagnostics.pl line 189 Second matchstr: '/>>/' /bin/rm: remove write-protected regular file `/var/www/cgi-bin/lbd/user_input_192.168.240.253.log'? y ignoring bad Prompt argument "'/>>/'": missing opening delimiter of match operator at linux_diagnostics.pl line 189 cmd_arg[0]: command Command: cardtest 1 1 prompt : cardtest 1 1, Prompt: StarTDate\(dd\) : EnD timeout : StarTDate\(dd\) : EnD Timeout: 600 : 600 Second matchstr: '/Date\(dd\) : /' /bin/rm: remove write-protected regular file `/var/www/cgi-bin/lbd/user_input_192.168.240.253.log'? y ignoring bad Prompt argument "'/Date\(dd\) : /'": missing opening delimiter of match operator at linux_diagnostics.pl line 189 cmd_arg[0]: command Command: 10 prompt : 10, Prompt: month\(mm\) : EnD timeout : month\(mm\) : EnD Timeout: 600 : 600 Second matchstr: month\(mm\) : /' /bin/rm: remove write-protected regular file `/var/www/cgi-bin/lbd/user_input_192.168.240.253.log'? y ignoring bad Prompt argument "month\(mm\) : /'": missing opening delimiter of match operator at linux_diagnostics.pl line 189 cmd_arg[0]: command Command: 10 prompt : 10, Prompt: month\(mm\) : EnD timeout : month\(mm\) : EnD Timeout: 600 : 600 Second matchstr: month\(mm\) : /' /bin/rm: remove write-protected regular file `/var/www/cgi-bin/lbd/user_input_192.168.240.253.log'? y ignoring bad Prompt argument "month\(mm\) : /'": missing opening delimiter of match operator at linux_diagnostics.pl line 189 cmd_arg[0]: command Command: 10 prompt : 10, Prompt: StarTHour\(24 hour format\) : EnD timeout : StarTHour\(24 hour format\) : EnD Timeout: 600 : 600 with Regards Uday V G -- ********************************************************* Don't ask them WHY they hurt you, because all they'll tell you is lies and excuses. Just know they were wrong, and try to move on. **********************************************************