Hi Jeremy,
If it's executable, the command to run it is just the file name. You don't
type "run filename" or "exec filename" or anything like that.
It's normal for an executable file to have no extension. If the file is called,
for example, "myprogram", then you type "myprogram" to run it. If it DOES
happen to have an extension, that is part of the filename you have to type too,
eg if the file is "myprogram.exe" you would type "myprogram.exe" to run it.
Filenames are case-sensitive. If you type the command in the wrong case, it
won't find it.
The file will need to be executable by the user you are logged in as. In the ls
-l listing you should see something like:
"-r-xr-xr-x 1 myprogram"
If it doesn't show the "x"s, you can make it executable with:
"chmod +x myprogram"
Hope this helps,
Brian
----- Original Message -----
From: Jeremy Coulter
To: 'NZ Borland Developers Group - Offtopic List'
Sent: Tuesday, May 29, 2007 9:46 PM
Subject: [DUG-Offtopic] Linux executable
Hi All.
I have got Fedora installed in a virtual PC, and have installed Lazarus as I
am looking at writing a small app. for Linux.
The app. is a "program" or a console app. in Delphi.
The app. compiles ok and seems to run, although nothing happens much, but if
I go to a terminal window and try to run the app, it tells me the file doesnt
exit.
i did a dir -l and I cna see my app (its th biggest file) and noticed it has
no extension...and I think thats right, but I am clearly running the file the
wrong way.
I tried exec project1 (which is the name of the wee app) and that didnt work,
I tried run Project1 but nothing worked.
As you have prob. worked out, Linux is not my area of expertease :-)
Can somepn point me in th righ direction here?
Thanks, jeremy
_______________________________________________
NZ Borland Developers Group Offtopic mailing list
Post: [email protected]
Admin: http://delphi.org.nz/mailman/listinfo/offtopic
Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe