Hi all-
I've been fooling with this for a few days, but I'm rather new at this...
I have a bash variable containing a long string of various characters, for instance:
JUNK=this that the other xyz 1234 56 789
I don't know what "xyz" actually is, but I know that:
START=he other
and ... (2 Replies)
I have an alias already in my .bash_profile to download files using cUrl's -o (output to file, user provides the file name) option. I find I'm using it quite a bit, so I wanted to write a script to run "curl -o", taking the necessary inputs - file name and URL from which to download - and then... (3 Replies)
ok this is probably going to turn out to be something really stupid but i've tried to use the following command in a script but the output is just a blank screen and i have to use Ctrl c to exit it.
awk 'BEGIN {printf "%.2f\n", '${bashArray}'>='$Variable' {print '${bashArray}'}}'
the command... (2 Replies)
Hello,
I have question about curl - how can I disable caching on server side?
I actually am not on unix/linux but I use win32gnu curl.
I look for some good web- manual and I would like to find some good site which describes how looks headers of various Browsers (Safari, Opera). I have FF and... (0 Replies)
I'm relatively new to bash scripting and am trying to use awk inside a bash for loop but am having a problem with the variables.
for i in $(seq 30 5 60)
do
# Define variables up and down in AWK
eval $(awk 'BEGIN{ print "up=$((i+1))"}' < /dev/null)
eval $(awk 'BEGIN{ print... (2 Replies)
I am trying to use REST API and curl in a bash script to generate a http report. The curl command at the end of the script should generate a html file but instead I get an error "HTTP/1.1 503 Service Unavailable".
This is the script
#!/bin/bash
export... (7 Replies)
Hello.
I have pick up a script from internet to track errors from curl command.
#!/bin/bash
#
URL_TO_TEST="http://www.xxxxxx.yyy"
MY_VAR=curl_init("$URL_TO_TEST") ;
curl_setopt($MY_VAR, CURLOPT_HEADER, 1);
curl_setopt($MY_VAR, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($MY_VAR,... (2 Replies)
Hello,
My question is about curl command. (ubuntu14.04)
In terminal, I am able to download my mainfile with:
curl -u user1:pass1 http://11.22.33.44/*******
When I convert it into bash script like this:
#!/bin/bash
cd /root/scripts
computer_ip=11.22.33.44
curl -u $1:$2... (8 Replies)
Hi All,
I'm trying to run a script which issues rest commands via curl to an endpoint. If I put spaces in fields via something like insomnia, it works, but when I try from an input file, it's failing with a json error.
while IFS=, read mname oname <------ my input file... (10 Replies)
Discussion started by: say170
10 Replies
LEARN ABOUT DEBIAN
rt::client::rest::queue
RT::Client::REST::Queue(3pm) User Contributed Perl Documentation RT::Client::REST::Queue(3pm)NAME
RT::Client::REST::Queue -- queue object representation.
SYNOPSIS
my $rt = RT::Client::REST->new(server => $ENV{RTSERVER});
my $queue = RT::Client::REST::Queue->new(
rt => $rt,
id => 'General',
)->retrieve;
DESCRIPTION
RT::Client::REST::Queue is based on RT::Client::REST::Object. The representation allows one to retrieve, edit, comment on, and create
queue in RT.
Note: RT currently does not allow REST client to search queues.
ATTRIBUTES
id
For retrieval, you can specify either the numeric ID of the queue or its name (case-sensitive). After the retrieval, however, this
attribute will be set to the numeric id.
name
This is the name of the queue.
description
Queue description.
correspond_address
Correspond address.
comment_address
Comment address.
initial_priority
Initial priority.
final_priority
Final priority.
default_due_in
Default due in.
DB METHODS
For full explanation of these, please see "DB METHODS" in RT::Client::REST::Object documentation.
retrieve
Retrieve queue from database.
store
Create or update the queue.
search
Currently RT does not allow REST clients to search queues.
QUEUE-SPECIFIC METHODS
tickets
Get tickets that are in this queue (note: this may be a lot of tickets). Note: tickets with status "deleted" will not be shown. Object
of type RT::Client::REST::SearchResult is returned which then can be used to get to objects of type RT::Client::REST::Ticket.
INTERNAL METHODS
rt_type
Returns 'queue'.
SEE ALSO
RT::Client::REST, RT::Client::REST::Object, RT::Client::REST::SearchResult, RT::Client::REST::Ticket.
AUTHOR
Dmitri Tikhonov <dtikhonov@yahoo.com>
LICENSE
Perl license with the exception of RT::Client::REST, which is GPLed.
perl v5.14.2 2012-01-20 RT::Client::REST::Queue(3pm)