New answers tagged

1

Having a port open on firewall and having a program listening on that port are two different things. I think netstat shows ports being listened on regardless of firewall settings. There is nothing listening on 80/tcp port, therefore your telnet cannot connect. EDIT, NOTE: I really doubt your firewall blocks connection from localhost to localhost by ...


0

For sake of the completeness, I am posting here the full "ugly-but-it-works" solution (with the amends that, in its final form, it sends emails to more people, as well as provides an attachment): cd "$(dirname "$0")" working_dir=$(pwd) # switching to the folder this script has been started from cvs_domain=mail.org cvs_mail_server=mail.${cvs_domain} ...


0

Looking at pppinfo.cgi and doing a cat /usr/www/lib/settings.inc, it seems that the router itself issues a killall pppd to restart the ppp daemon thus enabling it. Also by issuing a link down command on interface ppp0, I was able to disconnect it from my ISP. You just need to send below commands using a Telnet client with whatever scripting language you are ...


1

When you need to script an interactive command-line tool, the typical solution is to use expect(1).



Top 50 recent answers are included