Hello Team ,
I am using system command in my script which is running on windows using CMD . The command which I am running is mentioned below .
system("simple_pin_$thost.pl $thost | findstr \n "2016 TTL timed" >> ping_$thost.txt" );when run though the script it gives below error message .
Number found where operator expected at C:\Windows\Scripts\Run_ping.pl + line 16, near ""simple_pin_$thost.pl $thost | findstr \n "2016" (Missing operator before 2016?) Bareword found where operator expected at C:\Windows\Scripts\Run_ping. +pl line 16, near "2016 TTL" (Missing operator before TTL?) syntax error at C:\Windows\Scripts\Run_ping.pl line 16, near ""simple_ +pin_$thost.pl $thost | findstr \n "2016" Execution of C:\Windows\Scripts\Run_ping.pl aborted due to compilation + errors.
-Ajay
In reply to Using system command not able to run though the script by chopraa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |