Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

rsh or other ways to execute remote commands from os.


Question

Posted

I'd like to execute remote commands on Win/Mac/Linux computers from HC2. Anyone tried that?

 

There's no "os.execute" in lua so I guess it's not straight down the road?!

 

 

3 answers to this question

Recommended Posts

  • 0
Posted

Did you find a solution?

  • 0
  • Inquirer
  • Posted

    No. Someone suggested sort of a jail break, but I found I should not invest more time in it...

    • 0
    Posted

    I can share my solution, which has been working for for a long time. On my router RT-AC68U with Tomato Shibby fw i enabled NGINX web server and put short php script at the nginx folder.

    Please login or register to see this code.

    So, I got the analogue web terminal with the ability execute any command and receive a reply. I just send request such as

    Please login or register to see this link.

    uptime .It is better to first practice from your browser.

     

    For example:

    Please login or register to see this code.

    With this script I am doing such things as: Reboot router,  on/of PPTP server,  on/off remote web access,  on/of RDP port, full control of Asterisk server, contol Music Player Daemon, ping all wired network devices and my favorite is checking out who is connected to a Wi-Fi.

    Please login or register to see this code.

    [needed  to put a %20 instead of spaces] wl -i eth1 and  wl -i eth2 are my wireless 2,4/5 Ghz network interfaces.

     

    In general, the potential is huge

    Please login or register to see this image.

    /emoticons/default_icon_biggrin.gif" alt=":-D" /> . I think the same can be implemented on other operating systems.

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...