Ho to clear a MQ queue :


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Ho to clear a MQ queue :
# 1  
Old 05-07-2009
Ho to clear a MQ queue :

Hi All,

Can anyone tell me how to clear list of queues in a file?

My file FILE1 has 3 queues

FILE1

FirstQueue
SecondQueue
ThirdQueue

I want to clear all these queues which belong to the same Qmanager from another script...

Can anyone help me for this..

Thanks in advance...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Help with clear printer queue script in AIX 5.3

Good day UNIX forum, could you help me with my clear printer queue script, i have problems with the consistency of this function, sometimes it works sometimes it doesn't. Thanks in advance } preRemovePrintQ(){ clear; echo; echo... (1 Reply)
Discussion started by: beware187
1 Replies

2. AIX

Clear wtmp

Hello, Is there a difference between the following commands besides consider the file permissions? /usr/sbin/acct/nulladm /var/adm/wtmp >/var/adm/wtmp cat /dev/null >/var/adm/wtmp Today I tried the second command and it worked... (2 Replies)
Discussion started by: x_adm
2 Replies

3. HP-UX

how to clear particular port

Hi Everyone, How to check the status of the particular port and also clear it if it is locked without reboot? Please suggest. Thank you. (6 Replies)
Discussion started by: laxmikant
6 Replies

4. Shell Programming and Scripting

How to clear a file

Hello, I have a script which creates a certain text file. Whenever I call it, I need to recreate this file, because I have no need in the previous content. So I thought to remove the file every time I call the script, and that way I am sure that the previous content will not interrupt me.... (2 Replies)
Discussion started by: shira
2 Replies

5. UNIX for Dummies Questions & Answers

how to clear history

Hi... i have one doubt pls... 1)can we clear the command line history in UNIX for a paricular login(scadm/root)if so how?. 2) can we see the time at which command executed. history is showing like : 100 display 101 lock 102 exit (7 Replies)
Discussion started by: gincemathew
7 Replies

6. Programming

clear screen in g++

How do I clear screen in g++ I've included curses and tried compile with lcurses as per gcc but fails, I can clear by using system("clear") but would prefer to use the curses library if possible. (2 Replies)
Discussion started by: gefa
2 Replies

7. UNIX for Dummies Questions & Answers

Clear confusion

Hi, In some machines when i type "clear" it completely clears all the contents on that window but on some it simply scrolls up all the content. How can i change this? (4 Replies)
Discussion started by: vibhor_agarwali
4 Replies

8. UNIX for Dummies Questions & Answers

Please help me clear up some confusion

Hello All, I like this forum btw, and have only been lurking for about a day. Recently I purchased some new hardware (AMD Athlon 64 3200+ and a Asus K8V Deluxe Motherboard), and I want to find an OS that can take advantage of the 64 bit processor. Basically, what are the differences... (2 Replies)
Discussion started by: RoY_mUnSoN
2 Replies

9. UNIX Desktop Questions & Answers

clear console

is there any way i can make my console clear? ive found out how to make it so i can see throught it, but all i get is the desktop.... i wanna be able to read a text document which i have open behind the console.... this is in kde3.1 (3 Replies)
Discussion started by: punk000
3 Replies

10. UNIX for Dummies Questions & Answers

clear memory

Hi... how can i clear the Memory on AIX 4.3.3 without rebooting (like flush memory on oracle database ) THANX fenomen (2 Replies)
Discussion started by: fenomen
2 Replies
Login or Register to Ask a Question
insque(9r)																insque(9r)

NAME
insque, remque - General: Add or remove an element from the queue SYNOPSIS
struct generic_qheader { struct generic_qheader *q_forw; struct generic_qheader *q_back; }; int insque( struct generic_qheader *elem, struct generic_qheader *pred ); int remque( struct generic_qheader *elem ); ARGUMENTS
Specifies the address of the queue header that contains the element to be manipulated. Specifies the address of the queue header that con- tains the element to precede the one specified by elem in the queue. DESCRIPTION
The insque routine adds the element that the elem argument specifies to the queue. The routine inserts elem in the next position after pred in the queue. The remque routine removes the element that the elem argument specifies from the queue it is currently in. Queues are built from doubly linked lists. Each element is linked into the queue through a queue header. All queue headers are of the generic form struct generic_qheader. A given element may have multiple queue headers. This allows each element to be simultaneously linked onto multiple queues. Any driver routine that manipulates these queues must call an appropriate spl routine to ensure that the spl level is high enough to block out any interrupts for other kernel modules that may access these queues. RETURN VALUES
None SEE ALSO
Routines: spl(9r) insque(9r)