View Full Version : Command line executable not a KDE executable?
FillYourBrain
09-30-2003, 07:49 PM
I compiled hello world using g++ and ran it "Konsole" on my cygwin install. Then I tried to click the same app in KDE and instead of running it, kde tried to open it in an editor. Is there something I'm missing about linux? probably :)
edit: further investigation seems to show that I have to call "exec" before the executable name in a shell script to click-run something. Is that right?
>Is that right?
Try asking the man. He knows everything about your system. :D It depends on what shell you're using for your script, but for the most part exec will terminate the current shell and start a new process in its place. Or, as the man says:
exec [command [arg ...]]
Unless command is omitted, the shell process is replaced with the
specified program (which must be a real program, not a shell
built-in command or function). Any redirections on the exec com-
mand are marked as permanent, so that they are not undone when
the exec command finishes.
Jaguar
10-03-2003, 11:24 AM
Cygwin is a POSIX layer (acting emulator) on Windows system, it doesn't completely comply with Linux. I think you might have to get a real Linux. :)
FillYourBrain
10-03-2003, 12:01 PM
no, my mandrake linux works the same in this regard. The only reason I use cygwin is to get used to XLib development. I have loads of source code that I'm trying to slowly port and it all needs to continue working on windows. So there is benefit to having them running on the same machine at once.
The question was one of the KDE environment anyway which is certainly available on cygwin. But never mind. I got it figured out.
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.