8

execve error when calling execve( man, args, env )

view full story
linux-howto

http://stackoverflow.com – I'm having trouble with this execve command. I can use it to run most other commands just fine in my program, but if I try to do like man ls or something I get this error. man: can't execute pager: No such file or directory man: command exited with status 255: LESS=-ix8RmPm Manual page ls(1) ?ltline %lt?L/%L.:byte %bB?s/%s..?e (END):?pB %pB\%.. (press h for help or q to quit)$PM Manual page ls(1) ?ltline %lt?L/%L.:byte %bB?s/%s..?e (END):?pB %pB\%.. (press h for help or q to quit)$ MAN_PN=ls(1) pager -s Here is how I'm calling it: execve( cmdPath, args, env ); where cmdPath is the (HowTos)