I can’t understand what’s wrong with my code. I’m trying to make it so that if the passed in username and group are both not found in /etc/group and etc/passwd echo both not found. If one but not the other is found echo one is found and finally if they are both found then echo both exist. He…
Tag: user-input
NASM code with user output, and then input into an argument. (code error)
I have had problems implementing user output into and argument with my below code. An example of BASH showing, a similar example function of what i would like to implement in NASM. The reason why I am creating this code is to show a comparison of different languages, used within Linux, This is one part of my …
How to get the last key pressed without stopping the C program?
Writing an application with command line interface and I would like to know at any time if F1 or ESC or an arrow key is pressed. What is the simplest way of doing this? I would like to avoid using a readline type library. This is a Linux specific question; the program is not multithreaded. Answer An implement…