How to auto start a program without login?

How to auto start a program without login?

Post by #XING SHUSONG » Mon, 12 Feb 2001 01:30:34



Dear all:

I wrote a program on Linux. As it need to use serial port for
communication,
to start it I have to login as root. How to start this program without
login? I want to automatically start the program after the computer is
powered on.

Thank you for any suggestion.

Xing

 
 
 

How to auto start a program without login?

Post by Daniel Barro » Mon, 12 Feb 2001 02:31:20




Quote:> Dear all:

> I wrote a program on Linux. As it need to use serial port for
> communication,
> to start it I have to login as root. How to start this program without
> login? I want to automatically start the program after the computer is
> powered on.

> Thank you for any suggestion.

> Xing

Start it from /etc/rc.d/rc.local.  Put it at the end of the file.

--
Daniel Barron - use [at jadeb.com] for personal replys.

 
 
 

How to auto start a program without login?

Post by Eric P. McC » Mon, 12 Feb 2001 03:06:45



> I wrote a program on Linux. As it need to use serial port for
> communication,
> to start it I have to login as root. How to start this program without
> login? I want to automatically start the program after the computer is
> powered on.

Put it in your init scripts.  The location and names of those files
vary depending on your distribution.  Try `man inittab'.  On Debian,
I think you'd want /etc/init.d/bootmisc.sh (but check to make sure I'm
right).

--

  "Knowing that a lot of people across the world with Geocities sites
absolutely despise me is about the only thing that can add a positive
spin to this situation."  - Something Awful, 1/11/2001

 
 
 

How to auto start a program without login?

Post by #XING SHUSONG » Mon, 12 Feb 2001 07:23:45


Dear Daniel Barron:

Your method works. Thank you.

As I use Redhat 5.1, I append the name of the application at the end of
the file /etc/rc.d/rc.local. The application is put into /bin.  

Xing

Quote:> Dear all:

> I wrote a program on Linux. As it need to use serial port for
> communication,
> to start it I have to login as root. How to start this program without
> login? I want to automatically start the program after the computer is
> powered on.

> Thank you for any suggestion.

> Xing

Start it from /etc/rc.d/rc.local.  Put it at the end of the file.

--
Daniel Barron - use [at jadeb.com] for personal replys.

 
 
 

How to auto start a program without login?

Post by Lee We » Mon, 12 Feb 2001 07:56:15



>Dear all:

>I wrote a program on Linux. As it need to use serial port for
>communication,
>to start it I have to login as root. How to start this program without
>login? I want to automatically start the program after the computer is
>powered on.

You need to put it into a file called rc.local, usually located in /etc/rc.d

Lee.