Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi
I use Linux Suse Enterprise server 10.
I have installed mc on it.
While sending mc to background with mc & I receive a PID for example 7521 but when I use ps command to check the active processes, this PID (7521) is assigned to bash process and mc ID has changed to some thing more, for example 7525.
Can any one explain me the reason? For other processes that I have checked, the assigned PID is same.
Thanks in advance.
Intriguing. Here's equivalent from Slackware 13.0 (sorry -- don't know how to find version of mc; the -V option doesn't give it, grepping all the /var/log/packages files for /usr/bin/mc doesn't find it ...)
Code:
c:~$ mc &
[1] 7478
c:~$ ps
PID TTY TIME CMD
7116 pts/2 00:00:00 bash
7478 pts/2 00:00:00 mc
7481 pts/2 00:00:00 ps
[1]+ Stopped mc
c:~$ type mc
mc is hashed (/usr/bin/mc)
c:~$ file /usr/bin/mc
/usr/bin/mc: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), stripped
My output for vim is same as yours.
I think because mc is visual view of shell, first, shell should run and then mc.
Output of the commands you have written is very long.
Should I send it anyway?
My output for vim is same as yours.
I think because mc is visual view of shell, first, shell should run and then mc.
Output of the commands you have written is very long.
Should I send it anyway?
yeah why not, so we can learn about this a little more and teach some stuff...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.