[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: shell command output question
From: |
Noel Yap |
Subject: |
Re: shell command output question |
Date: |
Wed, 24 Apr 2002 19:50:14 -0700 (PDT) |
--- Niklas Morberg <niklas.morberg@axis.com> wrote:
> Noel Yap <yap_noel@yahoo.com> writes:
>
> > I would like to have the following in my .emacs:
> > (setq load-path (cons STUFF load-path))
> >
> > where STUFF is the output of a command line. Does
> > anyone know how I would be able to do this?
>
> shell-command-to-string might be your friend. Does
> this work?
>
> (setq load-path (cons (shell-command-to-string
> "your_command") load-path))
It sort of does. I just need to strip off the CR at
the end. Would you happen to know how I can do that?
Thanks,
Noel
__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/