Am trying to run Python in my command prompt [closed] - python-3.x

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/

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

How to create a linux shell command from a github repo? [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 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.

npm skript dont find node [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
Sorry for the German question before.
I have the following problem. I search about it in the internet but i did't was successfull.
I wanna run my node script with my npm-dev script.
I execute " npm run dev". Normal like everytime.
Than i got this error message:
It means that node cannot be found.
I can execute via the Terminal my JS-File with "node index". Just all my npm-scrips doesn't work.
I think that i have some problems with the environment variables. But if I execute " node -v" or "npm -v" everything work fine.
In my PATH i have " C:\Program Files\nodejs" Not sure if that is all what I need?
Thanks in advance if someone can help me with this Problem.
AD

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