Which of 20 Terminals has mc on PATHx?
- From: chris glur <crglur gmail com>
- To: mc gnome org
- Cc: lab eas gmail com
- Subject: Which of 20 Terminals has mc on PATHx?
- Date: Sun, 22 Dec 2013 10:27:46 +0200
I've been trying to solve this for ten years!
Find which Workspace, terminal has a particular mc:Path/File ?
=> howmany mc are currently running
-> System.Execute pgrep mc | wc -l == 22 & last = 13982
=> Add one more looking at: /.mc/tree & /.mc/init == 14486
=> Use `mc` to search /.mc/* for init || tree == nX
=> Examine /proc/14486/*
-> System.Execute grep -n tree /proc/14486/*
== Binary file /proc/14486/exe matches
-> System.Execute ls -l /proc/14486/exe == only a link
/proc/14486/exe -> /usr/bin/mc
-> System.Execute less /proc/14486/cmdline == mc
=> Is /.mc/tree listed as an 'open file' ?
-> System.Execute lsof | grep tree == nX
-> System.Execute lsof | grep mc == !! bad choice !!
-> System.Execute lsof | grep init ==na
====
Just ignore "-> System.Execute" except to note that free/small-ETHO,
is even more visual than mc.
How do YOU know which mc is ALREADY open on a certain PATH/file?
== TIA.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]