Printable Version of Topic

Click here to view this topic in its original format

Linuxhelp _ Technical Support _ Basic question about commands

Posted by: bhamiltonvise May 14 2011, 04:02 PM

Forgive me for posting such a simple question, but I don't even know enough of the language to understand how to search for the answer.

I've been trying to get use of a couple of programs that are only accessible from the command-line in Mac OS X, especially <a href="http://johnmacfarlane.net/pandoc/index.html">pandoc</a>. I was able to install it with cabal, as the directions said. But I'm having trouble running it.

The executable file currently resides at ~/Library/Haskell/ghc-7.0.3/lib/pandoc-1.8.1.1/bin/pandoc. When I type it in like that, it works fine. But I'd like to be able just to type `pandoc.` How do I make that program generally accessible? There are several basic scripts I would like to have accessible from anywhere in the same way.

If anyone could explain how to get that done, and tell me what the language is for what I'm trying to do, I'd really appreciate it.

-- Brian Hamilton-Vise

Posted by: grod87 May 31 2011, 11:31 AM

QUOTE (bhamiltonvise @ May 14 2011, 03:02 PM) *
Forgive me for posting such a simple question, but I don't even know enough of the language to understand how to search for the answer.

I've been trying to get use of a couple of programs that are only accessible from the command-line in Mac OS X, especially <a href="http://johnmacfarlane.net/pandoc/index.html">pandoc</a>. I was able to install it with cabal, as the directions said. But I'm having trouble running it.

The executable file currently resides at ~/Library/Haskell/ghc-7.0.3/lib/pandoc-1.8.1.1/bin/pandoc. When I type it in like that, it works fine. But I'd like to be able just to type `pandoc.` How do I make that program generally accessible? There are several basic scripts I would like to have accessible from anywhere in the same way.

If anyone could explain how to get that done, and tell me what the language is for what I'm trying to do, I'd really appreciate it.

-- Brian Hamilton-Vise


You can set up a command alias to help you with this:
CODE
sudo alias pandoc='~/Library/Haskell/ghc-7.0.3/lib/pandoc-1.8.1.1/bin/pandoc'

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)