Announcement

Collapse
No announcement yet.

First script question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    First script question

    OK, not really a script, but a script command.

    I have a camera that needs to be periodically rebooted. The command is,

    http://192.168.0.28:9028/cgi-bin/system?USER=someperson&PWD=somepassword&SAVE_reboot".

    In the event, I select a single script statement, as the C# command (I'm running Linux):

    &shs.GetURL("192.168.0.28","/cgi-bin/system?USER=someperson&PWD=somepassword&SAVE_REBOOT",TRUE,90 28);

    I receive an error, though "Running C# script statement: Internal(1,1):".

    I'm guessing I'm missing something VERY basic, but have no clue what.

    #2
    Note it looks like there's a space between "90" and "28" but in fact there's not . . . .

    Comment


      #3
      There is likely to be any if any benefit to running C# to VB.net in a single line script command, Linux supports VB.net just fine. Drop the shs and either try just hs or nhs...and remove the last ;

      Comment


        #4
        Originally posted by mrhappy View Post
        There is likely to be any if any benefit to running C# to VB.net in a single line script command, Linux supports VB.net just fine. Drop the shs and either try just hs or nhs...and remove the last ;
        Awesome -- that worked!!! What was wrong with my C# code, though?

        Comment


          #5
          Originally posted by mikedr View Post
          Awesome -- that worked!!! What was wrong with my C# code, though?
          No idea!! I don't know the first thing about C#, I would be guessing..

          Comment

          Working...
          X