From: Peter Dyballa <Peter_Dyballa@Web.DE>
Cc: help-gnu-emacs@gnu.org
Subject: Re: dired shell command on background
Date: Sat, 13 May 2006 00:50:18 +0200 [thread overview]
Message-ID: <FE66C7EA-5BFC-41CC-91D9-6C131B003949@Web.DE> (raw)
In-Reply-To: <111f73c80605111521g45d2a76tdd4d462b87089752@mail.gmail.com>
Am 12.05.2006 um 00:21 schrieb rodrigo lazo:
> how could I make dired to execute a shell command on a file on the
> background
How about this: you augment for GNU Emacs only the PATH environment
variable by one extra directory on top, which can be done in .emacs,
and in this extra directory you have little executable shell scripts
for each background command you need. You type ! or X on that file or
the marked files in the dired buffer and then enter one such script's
name, RET. This way Emacs would find for example the xpdf shell
script first, which has a contents à la:
#!/bin/sh
# some comments or description ...
/usr/local/bin/xpdf "$*" &
In case of xpdf it only accepts one file name. So it might be more
appropriate to write:
#!/bin/sh
# some comments or description ...
while [ $# -gt 0 ]; do
/usr/local/bin/xpdf $1 &
shift
done
--
Greetings
Pete
"Evolution" o __o _o _
°\___o /0~ -\<, ^\___ /=\\_/-%
oo~_______ /\ /\______/ \_________O/ O_______________o===>-->O--o____
""
next prev parent reply other threads:[~2006-05-12 22:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-11 22:21 dired shell command on background rodrigo lazo
2006-05-12 22:50 ` Peter Dyballa [this message]
2006-05-13 11:11 ` William Xu
[not found] <mailman.1709.1147386121.9609.help-gnu-emacs@gnu.org>
2006-05-16 11:34 ` Josef.Bauer.NOSPAM
2006-05-16 14:31 ` Rodrigo Lazo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=FE66C7EA-5BFC-41CC-91D9-6C131B003949@Web.DE \
--to=peter_dyballa@web.de \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.