PDA

View Full Version : Running Programs



Mycroft1855
02-16-2003, 03:28 AM
I am still new to Knoppix so bear with me. I have created a program that I want to run at bootup time. But when I go to run the program

./myProgram

just to test it I get permission errors. Even under the Root shell i get permission errors.

My program was generated using G++ and have gotten it to work on my other linux box.

I have rebuilt Knoppix with my program and a script to autorun it at start up but have yet to figure out why this won't work.

Thanks for any help.

Alextreme
02-16-2003, 05:41 PM
Have you made your program executable?

chmod a+x ./myProgram

Mycroft1855
02-16-2003, 05:50 PM
I have changed the permissions, but it is still giving me problems. It keeps saying that no such file or directory while when I call "ls" it shows it right there. Thanks for the help so far.

Mycroft1855
02-16-2003, 06:19 PM
Nevermind I got it. I had originally compiled my code in Redhat, and I just recompiled it under KNOPPIX and it magically works. Thanks for all the help.

dvessey
02-16-2003, 11:19 PM
lol.. yep :) Knoppix is based on debian and has a different layout and different libs(afaik) than Red Hat