From: Tim Haynes <usenet@stirfried.vegetable.org.uk>
Subject: Re: Setting Group Ownership
Date: Tue, 10 Dec 2002 14:45:11 +0000 [thread overview]
Message-ID: <86vg22ue4o.fsf@potato.vegetable.org.uk> (raw)
In-Reply-To: AFmJ9.126378$Gc.4288682@twister.austin.rr.com
"CarlC" <carlc@snowbd.com> writes:
> When a file is saved I would like to set the file's group owner to an
> environment variable. This is on a Linux box. I know that I can use
> after-save-hook. I assume that I would have to call a shell command to do
> this. I don't know how access an environment variable and call the chgrp
> command from emacs. Any help would be appreciated.
Consider:
M-: (shell-command (concat "echo " (getenv "HOME")))
change a couple of things, you might have got what you want? :8)
~Tim
--
A spark of life |piglet@stirfried.vegetable.org.uk
On a wire from heaven |http://spodzone.org.uk/
next prev parent reply other threads:[~2002-12-10 14:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-10 14:14 Setting Group Ownership CarlC
2002-12-10 14:45 ` Tim Haynes [this message]
2002-12-10 21:13 ` CarlC
2002-12-10 23:40 ` Kevin Rodgers
2002-12-11 10:55 ` Tim Haynes
2002-12-11 14:27 ` CarlC
2002-12-12 14:15 ` Tim Haynes
2002-12-10 14:56 ` Stein A. Stromme
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86vg22ue4o.fsf@potato.vegetable.org.uk \
--to=usenet@stirfried.vegetable.org.uk \
--cc=news_reply@stirfried.vegetable.org.uk \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).