Tu as le classique inittab qui te permet de lancer une application vers
une console, mais ca sera lancé en tant que root.

Sinon, sous debian:

cat <<EOF > /etc/rc.boot/startop
#!/bin/sh
su -user -c "nice /usr/bin/top > /dev/tty2
EOF
chmod +x /etc/rc.boot/startop
/etc/rc.boot/startop

(debian, /etc/rc.boot/* sont démarés lorsque le system boot (utilise runparts))

JeF
On Sat, Jan 11, 2003 at 11:30:59PM +0100, alain adnet wrote:
> salut tous
> comment faire pour démarrer automatiquement, lors du boot, une console qui 
> affiche un top ?
> mais !!!! je ne désire pas que cette console démarre en root.
> 
> je ne suis pas fortiche, donc je pense à un petit script bash
> 
> #! /bin/sh
> su -user -c top >/dev/tty2
> 
> 
> ???
> 
> merci d'avance
> 
> 
> -- 
> .--------ooOOoo-----
> :      www.adal.be        
> \_____________________________________
> 
> _______________________________________________________
> Linux Mailing List - http://www.unixtech.be
> Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/linux
> Archives: http://www.mail-archive.com/linux@lists.unixtech.be
> IRC: efnet.unixtech.be:6667 - #unixtech

-- 

-> Jean-Francois Dive
--> [EMAIL PROTECTED]

  There is no such thing as randomness.  Only order of infinite
  complexity.  - _The Holographic Universe_, Michael Talbot

_______________________________________________________
Linux Mailing List - http://www.unixtech.be
Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/linux
Archives: http://www.mail-archive.com/linux@lists.unixtech.be
IRC: efnet.unixtech.be:6667 - #unixtech

Répondre à