Re: [newbie] C programs and graphical environment - may be OT
On Tue, 2003-09-09 at 11:25, J Adam Latham wrote: If anyone has any advice as to how to get the C programs to execute when booting into a non-graphical environment it'll be most appreciated ... Thanks in advance ... Best, Adam Sounds like a system search path is being munged somewhere...have you checked all the environmental variables or reconfigured them in any way? stephen kuhn - owner == illawarra computer services a kuhn media australia company http://kma.0catch.com -- * This message was composed on a 100% Microsoft free computer * We expressly refuse to utilise Microsoft DRM encoded documents -- Many Myths are based on truth -- Spock, The Way to Eden, stardate 5832.3 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] C programs and graphical environment - may be OT
On Tuesday 09 Sep 2003 2:25 am, J Adam Latham wrote: Hello all ... I'm beginning to learn C programming and recently came across an odd occurence. When my system is set to boot into graphical mode (via MCC-Boot) everything with the C programs works fine ... They compile and execute. However, if I disable the graphical environment at boot (i.e., boot into a shell, if that's the right terminology) the C programs will compile w/out error, but they won't execute ... Instead, I get the following message - bash: a.out: command not found. It sounds like you are logging in as root when not in the graphical environment. Root usually does not have the current directory in the execution path, as a security protection against trojans. ./a.out should work. A better plan would be to log in as a regular user. -- Richard Urwin Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] C programs and graphical environment - may be OT
Thanks for responding, but actually I am logging in as myself (not root). On Monday 08 September 2003 11:47 pm, Richard Urwin wrote: On Tuesday 09 Sep 2003 2:25 am, J Adam Latham wrote: Hello all ... I'm beginning to learn C programming and recently came across an odd occurence. When my system is set to boot into graphical mode (via MCC-Boot) everything with the C programs works fine ... They compile and execute. However, if I disable the graphical environment at boot (i.e., boot into a shell, if that's the right terminology) the C programs will compile w/out error, but they won't execute ... Instead, I get the following message - bash: a.out: command not found. It sounds like you are logging in as root when not in the graphical environment. Root usually does not have the current directory in the execution path, as a security protection against trojans. ./a.out should work. A better plan would be to log in as a regular user. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] C programs and graphical environment - may be OT
On Monday 08 September 2003 10:48 pm, Stephen Kuhn wrote: On Tue, 2003-09-09 at 11:25, J Adam Latham wrote: If anyone has any advice as to how to get the C programs to execute when booting into a non-graphical environment it'll be most appreciated ... Thanks in advance ... Best, Adam Sounds like a system search path is being munged somewhere...have you checked all the environmental variables or reconfigured them in any way? Not that I am aware of ... What should the environment variables be in order to execute the program, and how could I check such a thing? stephen kuhn - owner == illawarra computer services a kuhn media australia company http://kma.0catch.com -- * This message was composed on a 100% Microsoft free computer * We expressly refuse to utilise Microsoft DRM encoded documents -- Many Myths are based on truth -- Spock, The Way to Eden, stardate 5832.3 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
[newbie] C programs and graphical environment - may be OT
Hello all ... I'm beginning to learn C programming and recently came across an odd occurence. When my system is set to boot into graphical mode (via MCC-Boot) everything with the C programs works fine ... They compile and execute. However, if I disable the graphical environment at boot (i.e., boot into a shell, if that's the right terminology) the C programs will compile w/out error, but they won't execute ... Instead, I get the following message - bash: a.out: command not found. Even when I then go into an X environment I still get the error message. But if I go back into MCC-Boot and select launch into a graphical environment and reboot, everything works fine ... If anyone has any advice as to how to get the C programs to execute when booting into a non-graphical environment it'll be most appreciated ... Thanks in advance ... Best, Adam Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com