Skip to content

Bash scripting check condition

I’m new to bash scripting and trying to write the following simple And this works as expected. But if I delete echo “some string’ it prints nothing: Why? Why does deleting echo some_string right after the condition checking breaks the function? Answer It is because the if-condition is execut…

How to map buttons in html to running an executable file

This is my html code. I’d link to map those buttons to 2 executable files to switch on and off led in wandboard. How will i do it? Answer According to your comment the LED is connected to the Server while you try toggle it from a client. Since the HTML Page you send to the client is then rendered

Cython standalone executable on ubuntu

I want my cython program to be standalone executable on linux, not to be imported. After cython –embed i got a c file,now how can i make it executable? Answer I guess you have to compile the .c file you have obtained. Assuming you are using python 3.5 and don’t have to link to other libraries than…

Check architecture for Linux and Mac

I’m trying to get the architecture of the computer executing my software, and so far it is working nice on Windows, but it fails on Linux and OSX. Let me show my current code: Linux and Mac always return “Processor is 32-bit”, so I guess that those environment variables are unused outside Wi…