Bash Script with Node JS
-
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 ?
-
We would need a lot more info to answer this.
-
@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.
-
Where does NodeJS come into this?
-
first step... are you managing to download the page with CURL?
-
@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.
-
@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
-
@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