add the executable to the end of /etc/rc.d/rc.local

so that the last line looks like this:

/my/path/to/executable/my_executable &

be sure to put the & on the end, so it returns the console to you.. if you
don't, you might have problems.

rc.local is run each time the system is booted.. so if you put the command
there, it will run at boot.

if you need to run it as a certain user and not root.. you can do that too.

Here is an example:

su - USERNAME -c "/path/to/execeutable >/dev/null 2>&1"

if you use that, the program will start as the user you put in place of
USERNAME


hope that serves you well.


rgds

Frank

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Glenn
Sent: Tuesday, 16 July 2002 6:57 PM
To: [EMAIL PROTECTED]
Subject: RE: [newbie] Anybody running the distributed net client?



Thanks, Michael (and Femme and everybody else).  That does help.  I'm a
recovering DOS command line junkie who was dragged, kicking and screaming,
into the Windows world, so I can relate to your explanation.

I've got the client running when I start it manually.  I'm used to it
starting up on log-in (under OS/2 and W2K), but that doesn't seem to be
possible unless  I speak some kind of incantation over an unnamed directory,
introducing a cryptic script (obtained from distributed.net's FAQ-o-mat)
into it while holding my tongue just so.  I'll just have to remember to
start it up whenever I log into Mandrake.

Thanks again all;

Glenn

This email scanned by Norton Antivirus software, with latest definition
files, prior to transmission.


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Michael Adams
Sent: Tuesday, July 16, 2002 04:39
To: [EMAIL PROTECTED]
Subject: Re: [newbie] Anybody running the distributed net client?


On Tue, 16 Jul 2002 08:22, Glenn wrote:
> Please pardon what is probably a FAQ, but I've been running Mandrake 8.2
> for all of about 10 hours or so, and my *nix experience is purely as a
> command line user about 8 years ago on a dumb terminal.   Can anybody
point
> me to a "dummy's guide to distributed net client installation".
>
> I gather I'm supposed to go to a command line where I am to type "dnetc
> -install" (to run it as a hidden service).  I walk my way down to the
dnetc
> directory, which contains my client files, in the Konsole.  An "ls"
confirms
> that the executable is there.  However, when I type the command, I get a
> "command not found" error.  Anything in here sound like a
> newbie-knucklehead trick?
>
> Glenn

I'll give it a crack Glenn.

To make an executable run you need to check the user has permission to run
it
like so.
$ cd dnetc
$ ls -l
A short example from my home directory.
[michael@tirnanog michael]$ ls -l
-rwx------    1 michael  michael       121 Jun  3 22:42 freeciv*
-rw-rw-r--    1 michael  michael       812 Jun 19 11:49 log.txt
See the x in the permissions of the file freeciv (and not for log.txt).
$ man chmod
for details of how to set this.

The current directory (folder if you are still thinking in Windows speak) is
not in the path statement for security reasons.
$ echo $PATH
So to run an executable use:
$ ./program
The dot (.) represents the current directory (not a nipple). The slash (/)
specifies inside the aforementioned directory. And program is the name of
the
executable.
Thus for my freeciv example above:
$ ./freeciv would run it.

Hope that helps.

--
Michael






Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to