General :: The Easiest Method To Get The Pid Of Last Process?
Feb 25, 2011For example, how to do this:
$ job1 &
$ p1=$LASTPID
$ job2 &
$ p2=$LASTPID
$ wait $p1 $p2
For example, how to do this:
$ job1 &
$ p1=$LASTPID
$ job2 &
$ p2=$LASTPID
$ wait $p1 $p2
i upgrade system from fedora10 to 11 when i start the system i got following error
Unable to keep input method running giving up to bring the process up because main input method process for SCIM rapidly died many time.See .imsettings.log for more details
.imsettings.log file contains this
imsettings information
==========================
Is DBus enabled:yes
Is imsettings enabled:yes
Is GTK+ supported:yes
Is Qt supported:no
[Code]....
What is the best method for debugging the booting process? Is there a cheatcode (tried debug and failsafe). Slackware 13.1 with standard linux kernel 2.6.35.8. I having a problem with a dell server 2860 booting my build. It is hanging on
[Code]....
Booting my previous kernel 2.6.27.27(different disk with different initrd.gz) it loads the same as above but continues with
Code: loading iSCSI transport class v2.0-870 iscsi registered transport tcp I'm stumped it the problem is with the ata_piix module or the iSCSI transport module or some firmware I might be missing. I booted other pcs without issue.
i was just wondering what linux distro (in your opiniion) is the easiest to use for a new user like myself. I currently use Zenwalk, which isn't bad but i hope there is something easier to use out there
View 14 Replies View RelatedThis is my first post and I figured why not start it off with a question!
First off, thanks for this site, I have a LOT of reading to do!
Secondly, my question is, what is the easiest way to upgrade my live server from Fedora core 4 to Fedora core 14 (latest stable version).
I have a box that is live with a couple of small active forums on it where the upgrade would take place.
I want to upgrade my box to stay up to date with the latest release of Fedora linux to take advantage of any enhancements or security fixes that has been implemented since version 4.
My box is colocated at a data center. Would it be best to upgrade from a CD or remotely? I have read there is quite a risk upgrading the OS remotely and some issues like broken files or dependencies could occur.
Im trying to set up a web server on Linux and I was wondering if there may be any shortcuts available or a simple step process to get me where I need to be in regards to setting up the server.
View 6 Replies View Relatedwhat's the easiest way (in, let's say, ubuntu) to be notified when someone (besides me) starts using my wireless network ?
View 8 Replies View RelatedI need to setup a mail server, purely for relaying mail to a MS exchange server. A previous employee used Postfix on CentOS. I have limited Linux knowledge and no experience with any mail server software other than MS Exchange, so we cannot continue with this solution (unless I can find a way of managing it all from a gui). Does anyone know of an MTA that can be configured completely by GUI? Everyone says sendmail has millions of features and loads of documentation, but I simply do not have the time to learn it. I need something that can be configured with minimal knowledge and via GUI, not command line. The only reason I'm not using Exchange is to try to save money, and hopefully it will be more secure.
View 10 Replies View RelatedI got myself a dell laptop from the local computer store. Its a used machine with Windows Vista Home Basic on it. I want to load Ubuntu Desktop 10.10 though so I can do perl development. BUT I want to keep a copy of the entire harddrive with the dell utility partition and Windows Vista in case I want to go back. I was thinking I could image the drive but I not sure what to use, I don't have Ghost or anything, Someone had told me about Clonezilla. Would that work for me? Is it hard to use? Also I want to burn the data to a DVD or something more storable than a harddisk.
View 8 Replies View RelatedI have like over 60 gb of tons and tons of tiny tiny files.
I used
Code:
rm -rf *
and I ended with system load of over 100+.
Any idea how do I mass remove the files without crashing the system? I have Q9550 with 8 gb ram.
one tell me the internal working of kill command. that is how it kills a process internally or from where it picks file to continue its process.
View 3 Replies View RelatedI 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.
View 3 Replies View Relatedsend the details raid configuration how to use in linux el5 and how to indentify the raid degrade process and how to rebuilt the process.
View 4 Replies View RelatedCode:
#include <stdio.h>
#include <unistd.h>
#include <signal.h>
[code]....
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.
How do you find the parent process of zombie processes?
When the child process is something where the parent is not entirely obvious...
Is there some way to list processes in tree format or something?
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?
View 1 Replies View RelatedI want ro ran new commandy after sungrid finish his task.Exp:qsub -q bla command1; command2 command2 start only when job of command1 finished.
View 9 Replies View RelatedI'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.
View 5 Replies View RelatedWe are normally using IPC for exchange of data between multiple threads or processes. Out of following IPC which are platform independent and why they are platform independent?
1. FILEs
2. Socket
3. Named Pipes
4. Shared Memory
5. Message Queue.
How to redirect one website to another website in apache.
For example: when i type www.example.com in my browser then it redirect to www.example.com/beta. so how i do in apache, i am using centos 5.
So I have a partition I wanna make smaller. I can use GParted but this is not secure. Even with backup - there are tons of personal files, I can't check 'em all if they are correct after resizing. So I thought maybe I can create a dir on another machine and do something like
Code:
cp -a / /mnt/0 # which is a mounted directory on another machine
and after repartitioning HDD get everithing back this way. Will it work?
Adobe's official reader don't support do-annotation under Linux. Evince can't do.Reading PDF is the last thing on which I can not totally move to a pure Linux environment.
View 2 Replies View RelatedI wish to know that which gcc release version had support on ARM 9 multicore system by using pthread library for its parallelizing method on ecos rtos.I assume that the compiler that support the single ARM 9 processor will surely compile its multicore version also.But i need a clarification about it.It is good if you give a article or provide a suitable link on the ARM multicore programming and its compilation method
View 1 Replies View Related1>what method is used?
2>does it required separate machine for that?
3>will the backup server never crashed?
I simply cannot get filezilla to work.It wont even pass its own test, yet on a friends mac, 'fetch' works fine.I need an FTP program for my Linux machine (OpenSuse KDE).Could someone please recommend one that I can get with YAST ?I just need to access a remote host to upload some files for a site.
View 9 Replies View RelatedI have set of DVD disks. I'd like to rip them to .mkv files, but with all information - i.e. all subtitles, and all audio tracks. Is there any tool on Linux that I could use to do it? I found some Gentoo howto about ripping, but it requires writing shell scripts, and I'd rather use something with clickable interface.
View 1 Replies View RelatedI have a file that is a list of other files, lets say FilesIWantToTar.dat. I want to say something along the lines of tar -c input-file=FilesIWantToTar.dat archive.tar or similar. Does the tar utility provide this functionality, or do I need to write a simple script?
View 1 Replies View RelatedWhen a Linux machine with NTP capabilities will start and it does not find the NTP server, how it will determine the time? A clue I have is that it uses some heuristic method but I don't need what does that mean. My main question is: How can I track such an event on a monitoring purpose?
View 1 Replies View RelatedIs there a GUI method to copy files or is this always done with the Bash terminal.
View 6 Replies View Related