R
ruud
I am rewriting my Except script from bash to Perl.
But i get an syntax error at the Send command.
Google is not helping me out here, so i hope for an answer here.
Here is a part of the script:
#!/usr/bin/perl -w
use Expect;
                                                                                                                            Â
$post = "post";
$quit = "quit";
                                                                                                                            Â
spawn telnet "news.nl-netwerken.com 119";
                                                                                                                            Â
expect {
        200}
                                                                                                                            Â
send "$post\r";Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
expect {
        340}
And here is the error:
syntax error at ./p line 12, near "send"
Execution of ./p aborted due to compilation errors.
What is wrong with this line ?
Thanks for your time.
But i get an syntax error at the Send command.
Google is not helping me out here, so i hope for an answer here.
Here is a part of the script:
#!/usr/bin/perl -w
use Expect;
                                                                                                                            Â
$post = "post";
$quit = "quit";
                                                                                                                            Â
spawn telnet "news.nl-netwerken.com 119";
                                                                                                                            Â
expect {
        200}
                                                                                                                            Â
send "$post\r";Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
expect {
        340}
And here is the error:
syntax error at ./p line 12, near "send"
Execution of ./p aborted due to compilation errors.
What is wrong with this line ?
Thanks for your time.