1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Run a www command on tomato?

Discussion in 'Tomato Firmware' started by rajil_s, Nov 22, 2008.

  1. rajil_s

    rajil_s Addicted to LI Member

    Guys,
    i have a remote PAP2 running behind a tomato firmware based WRT54GL. Sometimes, the PAP2 is not able to connect to the asterisk server. At those time i have to issue a http://192.168.1.101/admin/reboot in a browser to reboot the PAP2.

    Unfortunately, tomato doesnt have a browser so i usually do an ssh into the remote WRT54GL, do a port 80 forward to my local machine and use my own machines browser. I was wondering if i can issue http://192.168.1.101/admin/reboot directly from the command line interface of tomato?

    I think netcat should be able to do it, but that package is not installed on tomato.

    any ideas?
     
  2. astehn

    astehn LI Guru Member

    I'm fairly new at this, so I'm not sure this will work in your situation because I'm not sure about how things are handled by your web interface. But here's the command that I bet you could issue from the command line in Tomato to do what you want:

    wget - q http://user:password@192.168.1.101/admin/reboot

    For your case, you would just substitute your actual user name and your actual password and give it a shot!
     
  3. rajil_s

    rajil_s Addicted to LI Member

    Thanks wget seems to work ok.
     

Share This Page