theshell | Desktop Shell written in Qt | Dektop Application library
kandi X-RAY | theshell Summary
kandi X-RAY | theshell Summary
Desktop Environment written using the Qt toolkit.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of theshell
theshell Key Features
theshell Examples and Code Snippets
Community Discussions
Trending Discussions on theshell
QUESTION
I am trying to create a simple shell using C for linux. I cannot figure out why execvp() keeps failing. I know execvp doesn't require a path to be passed with the arguments. I tried following someone's recommendation by running the char array of my commands through strtok.
I keep getting execvp has failed: no such file or directory. I am just passing a simple "ls" as my command to test.
...ANSWER
Answered 2021-Mar-03 at 22:40You have a number of problems primarily detailed in the comments above. You don't terminate the execvp()
list of pointers with a NULL
and you shadow arg
with arg
declared as:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install theshell
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page