I am just stucked in syntax.This is more like a array and for loop problem.
I want to use ls -l command and get filezise and filename of all filenames in the directory in an array (say array#1).
After 2 minutes of sleep, i want to get the same information in another array (say array#2).
The... (4 Replies)
Hi all,
How to print variable value which i have assigned inside for loop
because that variable scope is local, but i want to use that variable outside for loop.
Awaiting your great help
Thanks,
Susil (1 Reply)
Dear all,
i m unable to give array decalartion in solaris Operating system shell script
and script was so.sh
declare -a bull
for i in 1 2 3 4 5 6 7 8 9
do
bull=$i
echo "${bull}"
done
it is throwing an error called
so.sh: declare: not found
so.sh: bull=1: not... (20 Replies)
Hi all,
I would like to declare a vector of variables and access them sequentially.
Here is my code
ARRAY_CT="0001000000 0000100000 0000010000"
ELEMENTS_CT=${#ARRAY_CT}
echo $ELEMENTS_CT
for (( j=1;j<=$ELEMENTS_IS;j++)); do
echo ${ARRAY_IS}
done
... (2 Replies)
In shell script i have two variables with value
debit_sal="DOG,HIU,JIU,GYT,PPI,KIU,HUY........."
debit_req='HIU, JIU, HUY, GTR, KOI, ............"
i stored this two in two array
arr=$(echo $debit_sal| tr "," "\n");
arr1=$(echo $debit_req| tr ", " "\n"); #(note second arry has comma with... (5 Replies)
Hi,
Have assigned values in Array and iterating in while loop and would require values outside of the loop. But its returning NULL.
could you please help us how to define Global array declaration in Unix shell scripting?
i am using Kron shell.
Thanks in advance. (2 Replies)
Hi all,
I have an input file like below (a comma seperated file)
345,12,10
400,11,8
328,1,3
I need to get the output as below ...
record 345 sum is 12
record 400 sum is 10
record 328 sum is 1
record 345 count is 10
record 400 count is 8
record 328 count... (15 Replies)
Dear Friends,
Please help me on this
my script name is send.csh
In this i have written the statement like this
set args = ( city state country price )
I want to pass this array to another c shell called receiver.csh. and i want to use it in this c shell
or
how to pass to... (2 Replies)
Hi Experts,
I've got this problem where I need to add two array in shell script such that that is an element is greater than 9 then it get further split into individual digit, something like below :
Input :-
array1=(2 6 8 9 10 12)
array2=(5 4 6 8 12 14)
Output :-
array3=(7 1 0 1 4 1 7 2 2... (8 Replies)
Discussion started by: mukulverma2408
8 Replies
LEARN ABOUT DEBIAN
amqp-declare-queue
AMQP-DECLARE-QUEUE(1) RabbitMQ C Client AMQP-DECLARE-QUEUE(1)NAME
amqp-declare-queue - Declare (create or assert the existence of) a queue on an AMQP server
SYNOPSIS
amqp-declare-queue [OPTION...] [-d] {-q queue name}
DESCRIPTION
amqp-declare-queue attempts to create a queue on an AMQP server, and exits. If the empty-string is supplied as the queue name, a fresh
queue name is generated by the server and returned. In all cases, if a queue was successfully declared, the (raw binary) name of the queue
is printed to standard output, followed by a newline.
OPTIONS -q, --queue=queue name
The name of the queue to declare. If the empty string is supplied, a fresh queue name is generated by the server.
-d, --durable
Causes the queue to be declared with the "durable" flag set. Durable queues survive server restarts. By default, queues are declared in
"transient" mode.
EXIT STATUS
If the queue was successfully declared, the exit status is 0. If an error occurs, the exit status is 1.
EXAMPLES
Declare the durable queue "myqueue", and display the name of the queue on standard output:
$ amqp-declare-queue -d -q myqueue
myqueue
Declare a fresh, server-named transient queue, and display the name of the queue on standard output (use amqp-delete-queue(1) to delete it
from the server once you're done):
$ amqp-declare-queue -q ""
amq.gen-BW/wvociA8g6LFpb1PlqOA==
SEE ALSO librabbitmq-tools(7) describes connection-related options common to all the RabbitMQ C Client tools.
AUTHOR
The RabbitMQ Team <info@rabbitmq.com>
RabbitMQ C Client 2011-01-01 AMQP-DECLARE-QUEUE(1)