General :: Ending A Process In Unix Instead Of Interrupting It?
Jan 18, 2010
At the unix command line if i press Ctrl-C,that does not end a process but rather interrupts it and i return to the shell prompt. So,i have the following two questions:1.Is there a way i can see the list of all interrupted processes and end them ?2.What key combination to press to end a process instead of interrupting it ?
Is there any way to monitor one process' CPU usage and RAM usage over time on Linux? I am trying to change to a cheaper VPS and need to work out what level of CPU and RAM I need!
I`m looking for solution. Is it possible to run process on 1 core in UNIX ? From time to time I must start some very CPU consuming process and unfortunately this process is running on all cores... so at this time working on PC is very hard.
what is the best/accurate way to get the process id in java code in order to write to the log file. To be specific: I am using avalon logkit for logging. I really cannot find a way to write the process id to each line in the log.
i want a process that can operate as both a TCP echo server and a UDP echo server. The process can provide service to many clients at the same time, but involves a single process that does not start up any other threads.
I have a new problem tied to the same system as in [URL]Apparently when I send the output from
Code: wget -q -O- http://<IP address>/<filename>.asp?LID=12345 |dos2unix to /dev/ttyS0 (whether via > /dev/ttyS0 or via > <somefile> then cat somefile > /dev/ttyS0)
I have a CSV file that's created in an application that can't output lines longer than 250 characters. the data fields, all together, are longer than this. how would I remove the line break from every line that ends with a comma? For example:
I'm trying to play an mp4 video (movie) with my VLC media player but the image is very sequential (it keeps interrupting). I don't know why... I've even tried to play with some other players but I have the same problem.
A function by name abc is called in many files. I want to copy all the lines with the function call to an output file.A simple grep on function name doesn't help me as the function call is spanning across multiple lines as follows:
abc(parameter1, parameter2, parameter3);
So I want to copy all the three lines (till semicolon) to the output file.The problem is because there are more than 200 calls for the same function and I cannot do it manually
I have a high priority service that I start with sudo nice -n -10 process. This process does not need superuser rights though, except for the priority elevation. But nice requires superuser privileges to elevate priority.
Description of what the code does or what i intended to do:
1. Created a child process from parent process using 'fork()'
2. Sent a signal 'SIGALRM' from child process to parent process using 'sigqueue' function.
(The Third parameter of 'siqueue' function contains the message (message msg) which the child process wants to send to the parent process.'msg' is a stucture instance containing a) pid of child and b) string) 5. Print the 'msg' sent by child process inside the signal handler function 'sig_action_function' of the parent process I am getting some junk value when this line is executed
Code:
printf("%d ",msg->cpid);
I expected to get the pid of child process, which the child process sent to parent process through the signal.
as we all know Process Scheduler does Process scheduling and its a process as well. I was just wondering that if this happens then the Process "Process Scheduler" should be a part of Process queue as well.
So if there are 5 process are there in Process queue & process scheduler is administrating them then since its also a process, once it puts a process under RUN state it should itself go inside queue because at one instant only one process can get executed on a processor. This is quite confusing for me. Please help me out. I tried to search on this but could not find any relevant topics.
I have a process running on Linux.When i do ps -eaf | grep <myProcess>, it show muliple entries for <myProcess> with different pids for each entry.Kindly tell me what could be the reason for a process having multiple pids?
I've been running my shellscript for about half an hour now. It's taking longer than I thought to process all the data. I have the process ID of it. Is it possible to save the process and log out then log in and continue the process? I know how to pause a process using kill -pause pID and continue it using kill -cont pID. But that only work if you don't log out after pausing it.
i have been using samba to gain access into windows computer through my pc which has fedora 8 ..can i access the unix machine from another unix machine? is yes then what is the procedures ?
I install Ubuntu 11.04 and enter it. Then I install all available updates(in the update manager), activate AMD/ATI closed source GPU driver(under hardware drivers).
Then I do a reboot(sudo reboot). Then I login and do a VT switch to ex:tty2(CTRL + ALT + F2). Then I input the command "Localhost$ sudo pidof X"
will show the pid I have to kill(kill as root or sudo). Then I kill the pid and the NT-A3500 would crash(usually on first try).
I hope I won't get bashed too much on my first post here. The problem I'm experiencing seems to be well known, yet I haven't come across a definite solution to it while searching the forums. I've got an external drive connected to my laptop via eSATA. When I want to mount it as a normal user from GUI level, I'm required to supply the root password since apparently the system's policy doesn't allow external drives partitions to be mounted.
The closest solution to what I would like to achieve is given by giulix in this post. Yet, with the polkit-gnome-authorization utility removed from Fedora 12 (at least so I've heard on mailing lists), it's difficult to find out where to start in terms of policy editing. What I would like to have is being able to mount this volume as a normal user from GUI level. I know I could just add an entry to /etc/fstab, but it just seems so old-fashioned and tacky, and besides, it's not, um, "dynamic" and wouldn't utilize hal and dbus, so I wouldn't have an icon on the desktop. (it's not really the reason, I'd just like to have things done the way they should be right now).
I started simply to end some processes to see if this would help. Ending dbus-deamon and pushing the shutdown button seems to shutdown the computer and temporarily solve the problem. I see that there are better solutions, so I hope it wont occur again.The problem is, I also ended a lot of other processes, like the clock, trashcan, workpane buttons, the sound button, the WiFi button and the show desktop button (and maybe some more I don't know of. I thought these buttons would automatically reappear after a reboot, but this is not the case. I could add some buttons manually, but I still haven't found the sound button and the WiFi button. Also, when I minimalize a window, it doesn't show anywhere on any panel.Luckily I can use alt-tab
I upgraded from 9.10 to 10.04 and after I select ubuntu in grub, the fancy new loading screen with progress bar(dots actually) comes up and just keeps going.
I tried to run % mvdir earlier and it said command not found. I then ran a search for it and still not found.Is there a place I can download the script for the command, and is there any information I should know post-download to get it to work?
I wonder if the unix commands (cp, mv, grep, args etc) are the same for Mac and Ubuntu. Do they have the same parameter lists and so on or do they try to stay the same but are slightly different?