How to create a linux shell command from a github repo? [closed] - linux

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I am trying to add https://github.com/RubinLab/aimconvert to my /bin so I can run it like a linux command. How can I do this?

From the README, you can first execute it locally within your local cloned repository
git clone https://github.com/RubinLab/aimconvert
cd aimconvert/bin
./aimconvert xml2json inputDirPath outputDirPath
will convert every xml in inputDirPath to json and puts in outputDirPath.
Creates outputDirPath if it doesn't exist
I recommend testing it that way first, because the bin/aimconvert is based on a relative path:
#!/usr/bin/env node
require('../')();
So adding directly bin/aimconvert to your /bin might not work.

Related

View environment variables in gunicorn linux [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I have a project that is deployed by a previous dev on a linux server. The environment variables are stored in /etc/systemd/system/gunicorn.service. The file doesn't seem to be present anywhere in the server but still the code runs fine. There are multiple steps to get this file set up but none to read it. I need the information to get it running on my local machine. Any cli commands to read the same?
The directory is in format:
app.py
requirements.txt
README.md
The app.py is the main function and the rest 2 also don't have anything to do woth gunicorn.
Did you try:
sudo cat /etc/systemd/system/gunicorn.service

Am trying to run Python in my command prompt [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I am trying to run Python in my command prompt, but when I tried it tells me python is not recognised as an internal or external command, operable program or batch file
First of all, if you didn't installed python yet, install it! https://www.ics.uci.edu/~pattis/common/handouts/pythoneclipsejava/python.html
to run a program from inside the terminal (both in Windows and Linux) it need to be in the environment PATH variable - this way the terminal knows where the actual exe/elf is.
For example, if you installed the python in C:\Python37\python.exe, the PATH should contain that path.
Please read this article which explains how to add Python to the Windows PATH - https://geek-university.com/python/add-python-to-the-windows-path/

How to save repo file in centos [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I have a link for the repository file
https://archive.cloudera.com/cm5/redhat/6/x86_64/cm/cloudera-manager.repo?_ga=1.139114810.807939978.1489498435
How can I download it? Which command should I use?
You can create server.repo file in following location.
cd /etc/yum.repos.d/
You can copy contains from above URL and save the file. After, you can install a package via yum command.
wget https://archive.cloudera.com/cm5/redhat/6/x86_64/cm/cloudera-manager.repo?_ga=1.118167936.807939978.1489498435
This is the way to download repo file. Now it seems very easy.

Elastic Map Reduce node.js bootstrap doesn't work [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
https://raw.github.com/AmazonEMR/bootstrap.actions/master/node/install-node-bin-x86.sh
That simply just. doesn't. work.
downloads that file. Add:
node --version
At end of it.
"On the master instance (i-d6c6a28b), bootstrap action 1 returned a non-zero return code"
The script works.
Adding the
node --version
Doesn't work because the path to node executable was appended as environment variable for your bash. This does not take effect until next time you sign in.
What was chocking for me was that the example from AWS was bad.
https://github.com/AmazonEMR/sample.apps/blob/master/node/sample-mapper.js
Some how
process.stderr.write(err);
doesn't work.
Edit- Try running that install-node-bin-x86.sh line by line through ssh. It will all run fine. Node --version still doesn't work. BUT. log out the SSH session and connect again. Then do 'Node --version' it will work.

Centos 6 startup script [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I need to put a startup script to my CentOS6 server.
I see that I need a script that contains start-stop cases.
But I have a problem to make it and neither how to put this script to startup.
Anyone can say me how can I add it?
The script must run a simply command that run a jar file:
java -jar FileName.jar
The simplest way would be to add your command to the file
/etc/rc.d/rc.local
Commands in the above file are run at startup (as root). Note that if you do this, your command will NOT respond to the usual service start/ stop commands.

Resources