Hacker News new | past | comments | ask | show | jobs | submit login

Would you think to run "man 2 execve" when getting "file not found" with a random binary though?



No, but I'd think to do the ls and the strace as the author did. Then I'd check the manpage instead of stackoverflow. Obviously her way worked, too, but I prefer manpages. /shruggie

(Well, I just knew the answer in this case because I've hit this particular error a bunch of times, but that's not really the point.)

I actually agree with jmgao's point that this inscrutability is the downside of syscalls' limited error return; just pointing out the good as well as the bad.


Yes, you'd rather strace and as that also obscurely fails you'd then ldd the binary...




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: