General :: Close/remove Message Queues Without Software Or Mq_close / Mq_unlink Command?
Jan 17, 2011
i am working on a project that uses message queues. i am able to successfully create them and they are working fine. now the problem is to close/remove message queues without software or mq_close / mq_unlink command. earlier when i worked on rh9, there is ipcs utility. we use ipcs to see all the existing message queues and ipcrm to remove them. however ipcs is not working for message queues in RHEL 5.3. Neither ipcs shows the exisiting message queues and neither we are able to use ipcrm. Plz guide to close/remove the queues with ipcs or any other command/utility from shell itself.
View 1 Replies
ADVERTISEMENT
Apr 16, 2010
I was trying to use Message Queues for sending message from aninserted kernel module to user space. The function sys_msgsnd failedgiving the obvious error -EFAULT.However, I was able to send the message from kernel to user space when I had made the same driver part of kernel (and not inserting it).How is that possible?I am using linux.2.6.19.x (arch=ppc)I now use Netlink socket to communicate from kernel to user, but the aboveproblem seemed strange to me.
View 2 Replies
View Related
Jan 26, 2011
I am implementing an IPC mechanism using message queues (Sys V).I can receive the messages using msgrcv() function. I am wondering how can I listen on the new messages. I would like to implement a mechanism that would notify me when there is a new message in the queue for me and I will call the msgrcv() function to retrieve the message.
View 4 Replies
View Related
Mar 10, 2010
I have this daemon I'm writing in Python, but I still a Python n00b. I've coded the part of the daemon that does the work, but not the part that receives messages. I need a simple system so that other processes on the same (Linux) computer can occasionally send text-string messages to the daemon (without needing to stay running all the time themselves). Once in the past we did something similar by (mis)using pyliblo to listen for OSC messages coming in on a certain port. That option isn't as workable here because the pyliblo interface (as near as I can tell) requires you to know in advance specifically what messages you are expecting, and forward them to specified functions, rather than just allowing you to generically process incoming messages as you see fit.
View 1 Replies
View Related
Mar 1, 2011
recently I had been to interview where I had a question to be answered, that what are advantages and disadvantages when desiging an application in linux.
View 1 Replies
View Related
Apr 15, 2011
I have a pthread waiting forever on a POSIX message queue and then call mq_close and mq_unlink on the POSIX message queue. I've found that the pthread never wakes up from it's call to mq_receive and remains blocked indefinitely. Is there a way to wakeup all pthreads blocked on a POSIX message queue after calling mq_close/mq_unlink? The goal is to include error handling during message queue deletion to avoid leaving any pthreads blocked forever.
View 2 Replies
View Related
Jan 3, 2011
I want to communicate between two threads, each belonging to a different process. Iam using message queues for this. I use mq_open()call. I created the queues with the same queue name starting with a '/'. But when I open the queue, the queue ID is different in both the process. What should I do so that both the process have the same queue ID?
View 1 Replies
View Related
Aug 19, 2010
On close down of kde4 I get the following error message;'Waiting for X server to shutdown kde4: fatal IO error; client killed error setting MTRR (base=0xf0000000, size=0x04000000, type=1) invalid argument (22)Because of this error I am currently closing down using "shutdown -h(-r) now"Could I please have some help on correcting the error.I have only a meagre experience with linux having only dabbled with it over the years
View 1 Replies
View Related
Jun 14, 2011
i know the command to start the x server is "startx" and ctrl alt delete is the keyboard short cut or atleast on slackware, to close X. i wanted to know what the comand is though.
View 5 Replies
View Related
Sep 14, 2010
How can I force all currently open sockets in linux to close from the command line?
View 2 Replies
View Related
Apr 25, 2011
I have a fairly standard Exim setup for inbound and outbound mail. Recently our development team has put together a PHP app that allows us to send out bulk mails to our clients. The PHP app uses standard PEAR libraries to initiate an SMTP connection to localhost (application and mail server are on the same box). The idea here is that the application will send out roughly 10'000 emails in a very short time period (60 seconds or so) which Exim will then hold in its queue for delivery.
The problem comes in where after about 50 emails, Exim stops accepting mail and loggs the following error in the exim_main.log file: SMTP command timeout on connection from localhost [127.0.0.1] Could it be that this is because Exim immediately starts delivering the mail and then stops accepting new incoming connections? I thought that increasing the SMTP limits may be the problem here, but even after setting new values in the exim.conf file to the following, I still get the same problem:
queue_run_max = 5000
smtp_accept_max = 5000
smtp_accept_queue = 5000
This begs two questions: How do I resolve this? What is the best way for configuring Exim to accept a huge amount of mail into the queue in a very short time period, but then gradually delivery it once it's all in the queue? I've seen some people run separate Exim daemons for incoming and outgoing mail; is this a good solution?
View 1 Replies
View Related
Mar 18, 2010
I am working on RHEL4 ES server. In our system Talk is not activated(i did not find it in services). To send a mail thru web based mail it is time taking process. I want to send a message(or a mail) to other server. How can I do this? Example: my server IP is 10.xx.xx.xx and the other is 10.xx.xx.xx
View 1 Replies
View Related
Apr 19, 2010
I configured syslog.conf to send logs to kiwi syslog server. After resetting (/etc/init.d/syslog restart),the server got log the message: "syslog 1.4.2 restart". But am getting just resetting message, nor other syslog message (using code or using logger command). I have other computer that send all the syslog messages.
View 2 Replies
View Related
Aug 10, 2010
I have rsync error message for this command,
Quote:
rsync -avr --delete --exclude lampp/tmp/* /opt/* /backup/opt/
rsync -avr --delete --exclude data/session/* /var/www/html/dmcatholic/* /backup/dmcatholic/
The error message is here.
[code]....
sent 1917154 bytes received 384128 bytes 5731.71 bytes/sec total size is 12220966785 speedup is 5310.50 rsync error: some files could not be transferred (code 23) at main.c(892) [sender=2.6.8]
View 8 Replies
View Related
Mar 19, 2010
I'm new to LinuxQuestions and this is my first post. I'm trying to build rrdtool to install Cacti and encountered the following problem: 'make' step returns an error messages:
Code:
./.libs/librrd.so: undefined reference to `xmlTextReaderGetParserLineNumber'
collect2: ld returned 1 exit status
What I have doneDownload and build the latest version of pkg-config, glib, pixman, cairo, pango, atk, gtk+ from official sites.
Download rrdtool source
Set PKG_CONFIG_PATH correctly
[Code]...
There is actually another problem with the computer which is "The Nautilus application has quit unexpectedly" everytime I open File Browser application or right-click>Properties a file/directory. This happen only after installing cairo and pango and I don't know how to revert to old version. Since there are a lot of log files so I'm very confused. Can someone give me a direction on how to resolve this?
View 3 Replies
View Related
Mar 23, 2010
Simple question but maybe not a simple task. I want to automatically remove the "On [date] [person] wrote:" message when replying to an email using Evolution. Any ideas?
For example:
On Tue, 2010-03-23 at 21:39 +0000, J Steel wrote:
> How do I stop this bit from appearing ^
View 2 Replies
View Related
Mar 22, 2011
I have a problem where in order to satisfy RPM dependencies, I need to remove packages and downgrade them in the same command. Imagine the following situation Before
A v2.0 depends on B,C
B v2.0 depends on C > 1.0
C v1.1
After
A v1.0 depends on C
C v 1.0
If I issue a
$ rpm -Uvh --oldpackage Av1.0.rpm Cv1.0.rpm
it will fail with "B depends on C > 1.0" If I issue a
$ rpm -e B
it will fail with "A requires B" so I appear to be in a catch-22. The obvious solution is to use a "--nodeps" and remove B before doing the downgrade, but I am creating these commands programmatically so I was hoping to use dependency resolution as a sanity check against an incorrect script. Is there any way to perform this downgrade without breaking the RPM dependency sanity checks by force?
View 2 Replies
View Related
Sep 14, 2010
I am reading the output of /proc/acpi/thermal_zone/ATF0/temperature in a program to read my CPU temp. I am using cat like the following:
Code:
#cat /proc/acpi/thermal_zone/ATF0/temperature
temperature: 49 C
I basically want to get rid of the spaces in between temperature and the actual temperature. Is there a command I can pipe the cat output to, to remove the spaces. I have seen suggestions for sed, or tr, but for some reason I cannot get them to work properly.
View 14 Replies
View Related
Nov 30, 2009
i want to remove words "Max" and "constrained" in a file given below:
Max 0.003745 constrained
Max 0.004549 constrained
Max 0.001689 constrained
[code]....
and further want to replace "Max" by line number so that i can plot the resulting file. i searched in forum, but couldn't do what i wanted to do. e.g. i used
1)grep command
grep -v "Max" inputfile >outputfile
deletes whole line,and hence whole text.
2) sed command
cat inputfile |sed 's/ .{1,12} //g' >outputfile
gives output
0.003745constrained
0.004549constrained
0.001689constrained
[code]....
View 4 Replies
View Related
Mar 26, 2010
When using the pr command for formatting simple text files for printing, page numbers are included in the header by default. I figured out how to remove the date from the header (pr -D ""), and how to remove the title (pr -h ""), but for the life of me I can't figure out how to remove page numbering from the header. Anybody know how/if this can be accomplished?
View 1 Replies
View Related
Jan 24, 2011
I am using this command for blocking some ipaddress. but now i want to remove iapddress. when i try # route delete 64.126.45.122 SIOCDELRT: No such process
View 1 Replies
View Related
Jan 19, 2011
how to close thunderbird fromterminal? I don't mean to kill the process,I just would like a "clean" exit.I'm asking this because my setup is so that the thrash should be cleared at exit so and the deleted email are deleted from the server. I then set a cron task so that thunderbird is killed but apparently doing so the emails are not deleted from the thrash (whereas they are if I close the application), and I'd like to change the task to close thunderbird rather then kill the process.
View 6 Replies
View Related
Aug 11, 2010
I'm trying to close the CD tray with the command eject -T on a laptop. It works only to open it, but not to close it, i have to do it with my hands
View 2 Replies
View Related
May 2, 2011
1. Find everything that belongs to KDE in /usr/bin/
2. Show me what it is
3. (Give me an option to) delete it
A note about what did not remove mentioned;
Code:
apt-get remove kde --purge
apt-get autoremove
View 1 Replies
View Related
Feb 3, 2011
I'm running into some problems using pkill in my scripts. I'm using a program that needs to dump.
View 4 Replies
View Related
May 11, 2010
An app failed to load properly and now i'm stuck in a sequence I don;t understand the solution for.
sudo apt-get autoremove
dpkg was interupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
View 1 Replies
View Related
Dec 2, 2010
how to write a script so that when I use the 'del' command it removes/sends the files / folders to a I specify for example 'dustbin'
View 1 Replies
View Related
Sep 24, 2010
I am using Ubuntu 10.04 and installed Wally 2.4.
I have few questions:
1) Currently I run wally with command line by running
Code:
It works, but as soon as I close my terminal, wally terminates. Is there anyway I can make it not terminate?
2) why is that option disabled?
View 4 Replies
View Related
Mar 12, 2011
I would like to Close/Open port 21 using command line. I have an FTP server and I don't want to have the port open all the time. I need only two hours by week to be open port 21 from outside to inside.So I need to know the command line for opening and closing the port 21 then I will implement this in a script into cron.hourly.
View 2 Replies
View Related
Jul 13, 2011
I need to remove a large binary file(PDF file) from a large log file which is generated daily.This is seriously hogging space on our servers.I need to remove the large PDF from the logs to make the logs smaller and manageable
I need to take out the texts (or binary file) between the strings
<my:PDF> and </my:PDF>
<applicationForm> and </applicationForm>
<image> and </image>
<extractedSignature> and </extractedSignature>
I am not sure whether sed utility can do this, these are large files and need to be pruned .I am not seeking logrotation advice just a script or command that can strip these large logs of texts between the characters above . I am not sure how to do this.These files are rather large.I am not sure how to achieve this with sed , tail, head , tr or any other facility .
View 2 Replies
View Related