I am trying to execute this execl command in a C program and it simply doesn't work.
execl("~/Desktop/taskc/validating/analyzer/numbers_analyzer", "numbers_analyzer", (char*)NULL);
bash: syntax error near unexpected token `"~/Desktop/taskc/validating/analyzer/numbers_analyzer",
I also tried with some validate examples that I've found on Internet and they also don't work. (I'm always getting the same error)
execl( "/bin/ls", "/bin/ls", argv[1], NULL );
bash: syntax error near unexpected token `"/bin/ls",'
execl("/bin/date", "date", 0, 0);
bash: syntax error near unexpected token `"/bin/date",'
Thanks and regards.