ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Bash Script with Node JS

    IT Discussion
    3
    8
    479
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      Laksh1999
      last edited by

      Hi Team,

      I have a ticketing portal which needs to be updated automatically through some template which I have.I am trying this through Bash scripting.I am unable to start itself.Anyone can help me

      Ticketing portal have one have the update tab.In the Update tab :"Hi ,How are you ? " needs to be updated when the script is initiated.Is that possible to do so ?

      1 Reply Last reply Reply Quote 0
      • scottalanmillerS
        scottalanmiller
        last edited by

        We would need a lot more info to answer this.

        L 1 Reply Last reply Reply Quote 0
        • L
          Laksh1999 @scottalanmiller
          last edited by Laksh1999

          @scottalanmiller I am trying to download the open tickets in the ticketing queue and analyze the same through ticketing api using curl command.

          I am trying from dev desktop through bash

          curl -k "$URL" | iconv -f 8859_1 -t UTF8 | json_xs -t yaml

          When I tried that command i got the error as

          % ./updatedscript.sh
          % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 165 100 165 0 0 311 0 --:--:-- --:--:-- --:--:-- 311 100 640 100 640 0 0 788 0 --:--:-- --:--:-- --:--:-- 788 malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "<!doctype html><html...") at /usr/bin/json_xs line 181, <STDIN> line 1.

          I have installed the perl as well through this command.

          yum install "perl(YAML)" -y

          still facing this issue.

          AIM : Do download the open tickets which is pending in our queue and analyze the data which is above 20 days not updated and then update the ticket to ask whether the issue is resolved for him.

          1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller
            last edited by

            Where does NodeJS come into this?

            1 Reply Last reply Reply Quote 0
            • scottalanmillerS
              scottalanmiller
              last edited by

              first step... are you managing to download the page with CURL?

              JaredBuschJ L 2 Replies Last reply Reply Quote 0
              • JaredBuschJ
                JaredBusch @scottalanmiller
                last edited by

                @scottalanmiller said in Bash Script with Node JS:

                first step... are you managing to download the page with CURL?

                zero step - why not use the ticketing system as it should have this functionality natively in the GUI.

                L 1 Reply Last reply Reply Quote 1
                • L
                  Laksh1999 @JaredBusch
                  last edited by

                  @jaredbusch said in Bash Script with Node JS:

                  @scottalanmiller said in Bash Script with Node JS:

                  first step... are you managing to download the page with CURL?

                  zero step - why not use the ticketing system as it should have this functionality natively in the GUI.

                  I want the tickets to be automatically updates if the ticket age is above 10 days

                  1 Reply Last reply Reply Quote 0
                  • L
                    Laksh1999 @scottalanmiller
                    last edited by

                    @scottalanmiller said in Bash Script with Node JS:

                    first step... are you managing to download the page with CURL?

                    I have the ticketing data downloaded from the API through CURL. trying to post the message through the txt file which i have which is giving some errors

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post