Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.misc > #14620
| From | no.top.post@gmail.com |
|---|---|
| Newsgroups | alt.os.linux.slackware, alt.os.linux.debian, comp.os.linux.misc |
| Subject | List files being edited ? |
| Date | 2015-04-24 03:29 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <mhcdbc$vnf$1@dont-email.me> (permalink) |
Cross-posted to 3 groups.
lsof | grep mcedit | grep cwd | awk '{print $2}'
shows you the PID of all mcedit.
less /proc/$mceditPIDs/cmdline
shows you the files being edited by mcedit,
for a valid $mceditPIDs.
What's the script to list all the files <open under mcedit>?
It's for human consuption, so need not be 'clean';
eg. less /proc/11549/cmdline
shows me
mcedit-b/var/CONTROL/CIPCstik
where I don't know what the "-b" is,
but I can see that CIPCstik is already open for editing,
in possibly another of the 22 WorkSpaces.
So I should not open another copy.
== TIA.
PS. old blackbox is a killer WindowManager:
Alt/<anyKey> can launch any program,
including opening an editor on your <notes file/s>.
Back to comp.os.linux.misc | Previous | Next — Next in thread | Find similar | Unroll thread
List files being edited ? no.top.post@gmail.com - 2015-04-24 03:29 +0000
Re: List files being edited ? Joe Beanfish <joebeanfish@nospam.duh> - 2015-04-24 14:53 +0000
Re: List files being edited ? no.top.post@gmail.com - 2015-04-25 08:59 +0000
Re: List files being edited ? William Unruh <unruh@invalid.ca> - 2015-04-25 14:34 +0000
Re: List files being edited ? Helmut@Hullen.de (Helmut Hullen) - 2015-04-25 18:26 +0200
Re: List files being edited ? Unknown <dog@gmail.com> - 2015-06-15 13:58 +0000
Re: List files being edited ? William Unruh <unruh@invalid.ca> - 2015-06-15 15:37 +0000
Re: List files being edited ? Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2015-06-15 20:10 +0300
Re: List files being edited ? "Anonymous Remailer (austria)" <mixmaster@remailer.privacy.at> - 2015-06-15 20:51 +0200
Re: List files being edited ? William Unruh <unruh@invalid.ca> - 2015-06-17 03:53 +0000
csiph-web