Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Basic question about commands
bhamiltonvise
post May 14 2011, 04:02 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 1
Joined: 14-May 11
Member No.: 15,310



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
Go to the top of the page
 
+Quote Post
grod87
post May 31 2011, 11:31 AM
Post #2


Whats this Lie-nix Thing?
*

Group: Members
Posts: 2
Joined: 31-May 11
Member No.: 15,346



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'
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 16th December 2017 - 12:01 PM