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
msgmni(5)							File Formats Manual							 msgmni(5)

NAME
msgmni - maximum number of system-wide System V IPC message queues (IDs) allowed VALUES
Default Failsafe Allowed Values DESCRIPTION
The tunable specifies the maximum number of system-wide System V IPC message queue identifiers (one per queue). Each message queue created has an identifier (ID) and there is an upper limit of identifiers. Applications use the system call to create new queues. If all IDs have been used, will return If a process acquires a message queue, but the process terminates without removing it, the queue and all its messages remain. Abandoned message queues can be removed with the command. Message queue status can be monitored using the command. For more information about System V message queues, refer to the section of the mesg(5) manpage. Who Is Expected to Change This Tunable? Anyone. Restrictions on Changing This tunable is dynamic. Changes to to this tunable take effect immediately. When Should the Value of This Tunable Be Raised? Raise this tunable when applications require more queues. When Should the Value of This Tunable Be Lowered? Lower this tunable when the requirement for queues has diminished. What are the Side Effects of Lowering the Value? Lowering the value increases the risk of application failure due to the inability to create more message queues. Lowering the tunable has no effect on any active message queues, even if the new tunable value is less than the number of queues created in the system. However, no new queues may be created until the number of active queues falls below the setting of What Other Tunable Values Should Be Changed at the Same Time? All the System V message queue tunables are interrelated and should be treated as independent variables. The set must be evaluated as a system to ensure the tunables reflect the application requirements. The message tunables include and Specifically, and tunables may need adjustment along with changes to the tunable. WARNINGS
All HP-UX kernel tunable parameters are release specific. This parameter may be removed or have its meaning changed in future releases of HP-UX. Installation of optional kernel software, from HP or other vendors, may cause changes to tunable parameter values. After installation, some tunable parameters may no longer be at the default or recommended values. For information about the effects of installation on tun- able values, consult the documentation for the kernel software being installed. For information about optional kernel software that was factory installed on your system, see at AUTHOR
was developed by AT&T. SEE ALSO
ipcrm(1), ipcs(1), msgget(2), mesg(5), msgmnb(5), msgtql(5), msgmbs(5). Tunable Kernel Parameters msgmni(5)