Jump to content

Shadow Blitz

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by Shadow Blitz

  1. Hello Gooserhino, I have the same issue as you had.


    I did try following your steps as I have perl installed though the nerd pack plugin and have the user scripts plugin installed.

    I created the usbreset script from the above post (the first big block of code that is on the site you linked)

    the usbreset script is located at /mnt/user/appdata/userscripts/usbreset on my server. and I chmod it with 777 and +x. then I created a script titled 'upsreset' and put your code into it but replaced '/path/to/usbreset/script' with '/mnt/user/appdata/userscripts/usbreset' and when I try and run it. I get this failed result.

     

    Script location: /tmp/user.scripts/tmpScripts/upsreset/script
    Note that closing this window will abort the execution of this script
    Bus 002 Device 006: ID 051d:0002 American Power Conversion Uninterruptible Power Supply
    /mnt/user/appdata/userscripts/usbreset: line 1: /bin: Is a directory
    /mnt/user/appdata/userscripts/usbreset: line 12: syntax error near unexpected token `('
    /mnt/user/appdata/userscripts/usbreset: line 12: `int main(int argc, char **argv)'

     

    Any help would be appreciated. As I can't afford to buy a new UPS at this time and I would like to get this one to work in a way that I can have it set and forgotten and be reliable.

     

    Just for people who want to know, here is the details of my UPS.
    American Power Conversion Back-UPS BX1600MI FW:294201G -302201G

     

    Thank you.

×
×
  • Create New...