Actually there are three c programs double,half and square which respectively double halfs and square an integer , i have place .out file in sbin folder ,now they are processes now i have to concatenate these three processes like double half it return 8 how i will write the codes for it.
The below program is giving unpredictable and wrong output when I compile with g++ under Ubuntu OS , tried with the complier avilable with Ubuntu 8.04 and Ubuntu 10.04 LTS.
But it works fine when complied and ran Redhat g++ 3.4.6
I am new to perl and am having trouble adding some strings together.
My full code is below:
The problem is $NewCommandB is always split into two lines, where the second line contains the "/atlas2/<blah>/<etc>/..." string. Since I am generating a .sh file to execute a lot of similar commands I need the string to all be on one line. Any idea why I get this behaviour and any suggestion on how to tell perl to make $NewCommandB a one line string?
Btw for completeness finalFileList.txt contains just file names one line after another:
Inside a loop i'm populating a string variable. Because csh doesn't have very good support for arrays I thought of doing this. I want to add a new line character to the end of the concatenation each time the loop iterates. Then at the end print this variable out.
I tried " and some resources said it was just a "". Neither work. What am I doing wrong?
M busy upgrading one of my clients old Debain etch boxes to Lenny but i keep on getting this error.
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Debconf/Config.pm line 22. debconf: delaying package configuration, since apt-utils is not installed dpkg: unrecoverable fatal error, aborting: syntax error: unknown user `root' in statoverride file E: Sub-process /usr/bin/dpkg returned an error code (2)
I replaced my gnome with openbox some time ago, some of the gnome utilities still boots at at the start and I love and use most of them. Still few of them are causing problems, how can I selectively disable from autostarting?Also which utility takes care of mouse speed? I keeps resetting my settings?PS; I did some research and fooled around with xinit files, tried to grep them out of the init stuff, no result...
since updating from thunderbird 3.0b3 to 3.0b4, thunderbird no longer closes properly when using file - quit. the windows close but the processes are left running and i have to kill them. it does this in normal mode and safe mode however, if i move my .thunderbird directory out of the way and set up an account from scratch it seems to work ok but i don't really want to have to fully reconfigure everything from scratch. how to identify the offending setting/addon/etc. ?
I've Fedora 11 64-bit with Sun java SDK 1.6.0_18 and when quitting eclipse, the GUI window will be gone, but the process eclipse and java that it instantiates will not die. Subsequent execution of eclipse just creates new eclipse and java processes, taking up more memory. It doesn't matter whether I run from the command line or from the gnome menu.I tried both Fedora packaged eclipse-platform-3.4.2-20.fc11.x86_64 and the manually downloaded Eclipse Galilio, with the same problem. I tried removing ~/workspace/, ~/.eclipse and also tried -clean option, but still no go. I also have ~/.eclipse/org.eclipse.platform_*/configuration/config.iniosgi.bundlefile.limit=100 as explained in other threads which solves the start problem, but it has no effect for stopping.l -9.
I just switch to fedora from windows recently. And I love the terminal of fedora alot. The problem is when I run some command on the terminal, I need to wait for that command to finish before executing another command. This is very inconvinient, say If I open eclipse using the terminal, this eclipse program will hog to the terminal until I closed it. So if I want to use terminal again I have to open another one.Hence the question is: Is there any way open multi processes(command) using only one terminal?
This is a bit complicated to discribe because I don't know the cause, but this problem has been happening for some time (over a few years and generations of kernals), with different Gnome distributions, including Ubuntu (and family) and Fedora. When using Gnome (and only Gnome), I frequently see the screen dim. At the same time, all processes will be locked up. This may happen for a second or two, or it make require a reboot. The mouse can usually move and the underlying program GUIs are still visible, it's just that one or more of the GUIs will be dimmed. This is usually most noticeable with a browser, but that may just be a coincidence.
I noticed this weird behaviour yesterday after the last update (not sure if it's really related, but I didn't notice this before).When I do a fresh start and log in - all the gnome related processes are DOUBLED in the memory Of course it causes weird errors, applet hanging or crashes, very sensible slowness while booting and operating, etc, etc.Basically I have 2 gnome-session loaded at once - one as a child process of gdm-binary and another separate one. Both sessions have all the child process loaded, so I turned out to have 2 Nautilus, 2 Metacity, 2 Gnome-panel, 8 python processes and all the set of applets are also doubled.
Few days ago, the server did not respond to a ssh request from a user at night. A user tried to check what went wrong with computer and tried to login from terminal next morning. As the computer was unresponsive, he somehow decided to boot it by turning the power off. To make the story short, the server rebooted; however, he can't login to his account. Actually, the server could not start some processes; but was able to ask user to enter his account username. Even though, he enters the correct username and password, server does not accept the request. I also could not login as root.
I just checked the server logs by booting it in single user mode. Here are some interesting lines:
Before the reboot: irqbalance : can't balance irqs on a uniprocessor system: failed
After the reboot: irqbalance : can't balance irqs on a uniprocessor system: failed
In the gnome-system-monitor, on the "Processes" tab in the "View" menu, I should be able to choose between "Active Processes", "All Processes", and "My Processes". The chooses are all greyed out and I am only able to view "My Processes".I launched the app as root and had the same lack of choice.I also disabled SELinux and rebooted the machine.
I have a desklet that, occasionally after toying with network stuff, will tell me that large amounts of data are being sent/received. What's a good way to determine what processes are occupying these resources?!
My system, setup as a server, has 9 kjournald processes and each one has many worker threads. FOr the most part they just sit idle but I do see one or two occasionally activate with disk activity (which you would expect).
However is 9 processes normal or am I getting stale processes that need to be looked into?
I keep the network window of System Monitor active on my panel to see if anything is going on with the network.
After the last upgrade, lucid has been having nonstop short, small bursts of network activity, showing in system monitor as received data of approx 60 kb, then 0, then ~60, then 0, continuously. This is occurring before any applications are opened.
Whatever it is, it starts to tie up the processor until performance is unusable.
The processes screen does not offer any clues, perhaps because the data transfers are so small and spaced out. It still should indicate what is tying up the CPU, though. In the attached screencap, you can see the network activity pattern in the system monitor window in the panel.
Is there any way to monitor what processes are accessing the network in order to see what is going on?
I had this error when installing and running a vncserver before, which I have now removed. However, the xterm's seem to remain in the system and are regenerating themselves. Should the pid IDs stay the same each time I run this?
I need to create a small list of processes in a monitor.conf file. A shell script needs to check the status of these processes and restart if they are down. This shell script needs to be run every couple of minutes.
The output of the shell script needs to be recorded in a log file.
So far I have created a blank monitor.conf file. I have gotten the shell script to automatically updated every couple of minutes The Shell script also sends some default test information to the log file.
how I go about doing this part ? A shell script needs to check the status of these processes and restart if they are down.
I have put in the conf file the below commands but I am not sure if this is right.
ps ax | grep httpd ps ax | grep apache
I also dont know if the shell script should read from the conf file or if the conf file should send information to the shell script file.
I will be switching to Debian soon and have been forming a large script with a vbox test system to automate my system configuration when I switch.
When I install lamp (Or basically it's equivalent packages) apache and mysql start up automatically.
I could just use update-rc.d to remove the autostart but whenever there's a security or feature update for the package the files get replaced.
In addition, for some reason the system thinks it's a good idea to autostart half a dozen apache2 processes at the same time, sucking up a good 150Mb ram when not doing anything. (Anyone know why?)
How would I stop my system from doing this? Could I "chmod 000" the /etc/init.d files?
This morning I ran unhide on my Squeeze x86 netbook. The brute force process detection came up with ahidden process. Repeated runs of unhide with the system in various states continued to show the process,but with a different PID each time.(Or maybe it was spawning new processes and killing itself every second or so. A newer version of unhide,which I compile from source, did describe the process as "maybe transient" or omesuch. Anyway, I've unhide on Squeeze before, and I know that detection of any hidden process is absolutely not normal.)Also, rkhunter found some hidden directories. Of particular note, I think, is /etc/.java, which contains evenmore hidden stuff. It *might* be system-wide preferences for the JVM, but somehow I doubt it.
So, I have two questions...1. Do I really have a rootkit or trojan infection? It looks like it, but I want confirmation that I'm not chasingphantoms. (Or that I am, whichever.)2. If so, how can I prevent a recurrence? FWIW I was running without iptables or any other firewall, but I madesure all my ports were closed; and I did most of my browsing through Chromium, which should have pretty
Just now Rhythmbox has stopped working. I can't restart it, so I thought I could kill the process to start it again. Is there something like the windows task manager in openSUSE or another way to list all processes and to kill one? I googled an found a few old threads saying that there is a performance monitor which is able to to that, but I can't find that either.
I know that you can modify the nice value of a particular process as follows:renice 19 -p 4567However, now I would be interested to set the renice value of ALL active processes.I am coming from the Win world so what I tried warenice 19 -p *Of course it is not working... Anyone a quick solution how to do that in Linux?
I would like to get a log of all processes that are launched with the time that they were launched and the arguments they were launched with. Is this possible in Linux?
Why each boot-level consist of shell-scripts that start and stop processes? Why does the system while booting not just simply add the necessary programs for the next level by starting them, thus making the stopping of specific tasks not necessary and certainly speeding up the boot process?
What is the minimum amount of processes that can be run and still keeping stable? I have what looks like over 100 processes running and my computer is lagging pretty bad. Attached is an output of Code: ps -A And it comes and goes with the cpu usage. cpu1 will run at like 9 or 10 percent idle while cpu2 will run at 100 percent all the time. I am not sure whats going on. But id hate to have to start from scratch again begins I just got it set up the way i want it. And the network activity keeps having spikes when I am not online. I've scanned with multiple port scanners and nothing seems out of the norm.