Discussion

Monitor the stock quote on Linux from the command line

2 2516
hange  
This tool named Mop, it is a lightweight command-line tool written by Go and could eaaily monitor the lasted stock quote from the us market.So, we need to install the GO language first.
1. Install the Go language.
Use the next command to install Go Language and it's development tools.
  1. sudo apt-get install golang
Copy the Code
Then check the version of Go Language to verify installation.
  1. go version
Copy the Code
The Go code have to be kept inside a worksapce, so wo should make a directory for it(eg: $HOME/golang),
and define GOPATH environment variable pointing to the workspace.
  1. mkdir ~/golang
  2. echo 'export GOPATH="$HOME/golang"' >> ~/.bashrc
  3. . ~/.bashrc
Copy the Code
For more Go tools if you need.
  1. sudo apt-cache search golang
Copy the Code
2. Install Mop to Linux
After you install your Go Language, install Mop now!
  1. cd $GOPATH
  2. go get github.com/michaeldv/mop
  3. cd src/github.com/michaeldv/mop
  4. make install
Copy the Code
now, you could edit the $HOME/.bashrc file to add the $GOPATH to PATH.
  1. echo 'export PATH="$PATH:/$GOPATH/bin"' >> ~/.bashrc
  2. source ~/.bashrc
Copy the Code
3. Monitor the stock quote now!
Just run command 'cmd' .
  1. cmd
Copy the Code
Like this:
ff.jpg
And input '?' for help.
dd.jpg
That's all.
hnsncxy  
Good sharing . . .

pikachu  
Thank you for sharing this great post, I am very impressed with your post, the information is meticulous and easy to understand. I will regularly follow your next post.
slither io

You have to log in before you can reply Login | Sign Up

Points Rules