is it possible to get the length or even the items of both queues, the run queue and the swap queue? I've googled a lot but had no luck. Maybe I havn't used the correct search words...
Is there any header and/or code example to use structures or any API to get these information from the kernel or the scheduler?
I'm new to php and need some pointers to worth while documentation 'cause I'm getting nowhere I want to make a simple html form that allows me to submit a csv file so that I can work on it.The problem seems to be that if the file is not in the root of the (web) application it won't work.The form doesn't seem to send the path with it so I am unable to (1) know where the file is, I just get the name of the file and (2) I couldn't access the file anyway as it's outside of the apache environment.Is there a way to up the file to memory? How would you do this
I can easily surf along to the URL [URL] and click the submit button which pokes script.php and everyone's happy. Automating this in iMacros or Selenium - no problem.
I want to automate this in a bash cron on the same server - preferably as a one-liner.
Following function obtains the system-maintained structure for a message queue:
Code:
And following function simply resizes a message queue to a user-defined value, namely, "size":
Code:
My question is if there is a theoretical limit on user-defined message queue sizes.
To put in other words, is it possible to increase the default message queue size to any user-defined value as long as that certain value does not exceed the size of system's physical memory ?
In a single main() function,so need signal handling. Use Posix Message Queue IPC mechanism , can ignore the priority and other linked list message,to implement the scenario:
I was just curious to know where you submit a new or modified distro after making one. Not that I did--I'm not a programmer. But is there a particular place you submit a distro to, or do you just find some website to host it?
I have searched the web and these forums and have come up empty-handed. There must be a way... even and easy way... to submit or edit freedb information for a CD. Grip supposedly had the ability but 1) it seems to be no longer maintained and 2) it seems it requires sendmail to be installed. I've read that submissions can be made by email, but 1) I've found no information on how to do this (ie structure and content of email) and 2) that's a lame way to have to do this.
This shouldn't be difficult (much less impossible). What am I missing?
The value of envar PATH for processes run by the udev system is "/usr/gnu/bin:/usr/local/bin:/bin:/usr/bin:.". If peer review (that's you!) agrees it is a poor choice how can I submit an enhancement request? The man pages do not say anything about bug reporting. Here are reasons why it is a bizarre choice:There is no /gnu/bin directory on as-installed Slackware. /usr/local/bin is empty (or very nearly empty?) on as-installed Slackware. Processes running under udev run as root; having "." in PATH is not good practice when running as root. Processes running under udev are likely to be doing "system" work so executables from the sbin directories are likely to be used. For example, udevadm itself is /sbin/udevadm. Presumably this PATH is set by udevd itself; it is not the PATH in effect when udevd is started by rc.M. AFAIK udevd's PATH is not configurable. The workaround is for processes initiated by udev to set a sane PATH for themselves, perhaps "/usr/sbin:/sbin:/usr/bin:/bin". EDIT: seen on Slackware 13.0 32 bit. EDIT2: rc.udev is run from rc.S, not rc.M as stated above
This problem one day popped out of nowhere in my ubuntu 9.04 firefox browser that I could not submit my reply on any forums. So I changed my browser to epiphany and then to opera but all failed then I installed arora and it worked. I don't know what is the problem with other browsers I just cannot submit a reply on any forums.
The problem with ssh is that it's a live connection; rubbish over a slow or packet loss full connection like satelite. Surely there's got to be something out there that allows you to compose the command you want and then submit it in one go with the return key?
How do I use the drop-trace command in NS2 to create a trace file of all of the packets dropped over the course of a simulation? If drop-trace is the wrong command to use, which command should I use to monitor the number of packets dropped at a certain queue in a link?
Am wondering if looking at the CPU process queues, vs CPU% busy, are a better indication of whether an upgrade is needed.
Afterall, processes can still queue up to be processed even if "top" doesn't shown CPU 100%. Say if it's indicating 50% busy within the top output, it's only saying that 5 out of 10 times sampled, the CPU was busy. But a process may arrive to be processed at any time, and if it arrives just when the CPU is processing something it needs to wait in the queue. Am I making senses?
How many processes queued up would suggest an upgrade is required of the CPU? I've read online (believe it's Microsoft) that 2 is the figure.
I have an HP printer for my Lenny which has worked for some year. But I don't remember what method I used to install it. So this is one piece of the puzzle that I can't see. But like I said the printer works. One day I accidentally printed more than I had papers in the printer-machine. Then I kind of stacked a lot of print jobs in the queue out of frustration. So whenever I reboot the PC/Lenny then it waste some paper by printing things that got stuck in the printer queue. It's not very environmental this weird behavior.
So next time this happens how do I flush the Printer queue so Lenny doesn't remember what happened before the reboot? I followed these instructions earlier but it only switched one weird behavior with another weird behavior. So it didn't work for my Lenny, and I couldn't find any better solutions on the Internet. [URL]...
I installed fedora 15 from a live CD distro. everything works great except --add/remove software application. Applications for intallation or installed application do not appear at all. Is like an empty add/remove software application.
I'm wondering if it's possible to create mail packages and put them into the postfix queue simply by writing files to the hard drive.Currently I have a script which uses a socket connection to dump the data in, but if I could write it directly to the hard drive this would speed things up considerably. Is this possible?
I recently started using Transmission torrent client. I love it! The light weight and web interface feature is compelling. I am not able to figure out how to queue torrents.
The Gnome Print Manager found the printer with no problems. The correct driver was available - so I installed it. The printer shows up when called by a print job I want to send. The queue pretends to process it. The queue states "completed." Then Nothing comes out of the printer. XP shows the print job as pending. Still nothing comes out of the printer. And I can't delete the job from the Ubuntu queue (because that lying SOB tells me the job is completed). I can't print from XP to that printer until I delete or cancel the Ubuntu job (from the XP queue) - or clear the XP print queue (by deleting spool files). Permissions on that printer are not an issue. Printing from Ubuntu to that printer worked OK on earlier versions of Ubuntu.
Mails are not going out of the queue. Removed all frozen mails and tried to flush queue using exim -qf command. Also checked queue after restarting exim. Still messages are not going out of the queue.
Ok for some reason my sendmail queue is not processing the mail that's in mailq it looks like it trys to process and times out or something and skips to the next one, is there any way I can find out why it's not sending the queue list that's in mailq. the mail that's in the queue list is from my websites registration form.
I have created a nfq handler via nfq_open() and using the returned qhandle to bind my application program to a specific queue number that is configured in iptables. when i invoke nfq_create_queue() my program is stuck there and the back trace shows it is blocked in recvfrom()
bt
in recvfrom () from /lib/x86_64-linux-gnu/libpthread.so.0 in nfnl_recv () from /usr/lib/libnfnetlink.so.0 in nfnl_catch () from /usr/lib/libnfnetlink.so.0
I have a non-root account on a shared server, on which the system administrators do not support printing because of past experience with stalled and runaway jobs. For the same reason, they do not allow installation of a user-land spooler. How can I set up printing without a local queue?