DEUKO
Posts: 1
Joined: Fri Jul 12, 2019 5:35 am

How to make a command?

Fri Jul 12, 2019 5:40 am

Hi? My professors?

I'm just a student who started raspberry pie? I'm currently working on a project through RaspberryPie, and I want to set up a command to run and exit the program.

For example, if you enter a number of 1, the program will run and if you enter a number of 0, you want to turn it off.

But I do not know what to do. And I do not know how to search the material.

If there is any way, please leave a reply.

Thank you.

User avatar
joan
Posts: 14006
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: How to make a command?

Fri Jul 12, 2019 9:14 am

Start here https://projects.raspberrypi.org/en/pro ... y-pi-using and make sure you understand before continuing.

Then perhaps look at https://projects.raspberrypi.org/en/pro ... thon-sushi

Return to “C/C++”