Clear screen na commando logout

Pagina: 1
Acties:

  • Kogelvis
  • Registratie: Maart 2001
  • Laatst online: 06-07 17:05

Kogelvis

Nu ook met gitaar

Topicstarter
Hoi ik heb hier nu met volle tevredenheid slackware 8.0 draaien alleen heb ik nu een probje ik wil eigenlijk voordat het loginscherm op het scherm komt een clear laten uitvoeren als de computer opstart kun je dit in de /etc/rc.d/rc.local zetten maar hoe doe je dit als je het commando logout hebt gebruikt??

<Jeroen> Wirf: vrouwen versieren kan je gewoon in het OSI model proppen hoor :P
I am dyslexic of Borg prepare to have your ass laminated
Real Programmers always confuse Christmas and Halloween because oct31 = dec25


  • Zeezicht
  • Registratie: Juni 2001
  • Laatst online: 14-05 14:29
Als je Bash als shell gebruikt kan je in je home dir een bestand aanmaken .bash_logout
Daarin zet je dan de commando's die uitgevoerd dienen te worden voordat je uitlogt.
In jou geval dus clear :)

  • deadinspace
  • Registratie: Juni 2001
  • Nu online

deadinspace

The what goes where now?

Je bedoelt dat als je op de console uitlogt, dat dan je scherm gecleared wordt?
Zo ja:
code:
1
2
3
4
5
6
7
8
marcelm@something marcelm$ cat .bash_logout 
# ~/.bash_logout: executed by bash(1) when login shell exits.

# when leaving the console clear the screen to increase privacy

case "`tty`" in
    /dev/tty[0-9]) clear
esac

Hoewel een simpele 'clear' ook zou volstaan :)
Dit is dus overigens alleen voor bash, met andere shells zou ik het niet weten.

  • Kogelvis
  • Registratie: Maart 2001
  • Laatst online: 06-07 17:05

Kogelvis

Nu ook met gitaar

Topicstarter
Allemaal bedankt dit is precies wat ik bedoel en ik gebruik idd bash als shell.

edit:

trouwens nog een vraagje als je een extra user aanmaakt kun je er dan ook voor zorgen dat dit .bash_logout script automatisch word gemaakt en in zijn / haar home dir word geplaatst??

<Jeroen> Wirf: vrouwen versieren kan je gewoon in het OSI model proppen hoor :P
I am dyslexic of Borg prepare to have your ass laminated
Real Programmers always confuse Christmas and Halloween because oct31 = dec25


  • moto-moi
  • Registratie: Juli 2001
  • Laatst online: 09-06-2011

moto-moi

Ja, ik haat jou ook :w

Op maandag 17 september 2001 22:10 schreef Kogelvis het volgende:
Allemaal bedankt dit is precies wat ik bedoel en ik gebruik idd bash als shell.

edit:

trouwens nog een vraagje als je een extra user aanmaakt kun je er dan ook voor zorgen dat dit .bash_logout script automatisch word gemaakt en in zijn / haar home dir word geplaatst??
in /etc/skel zetten. Da's een skeleton (Hey, daar komt die naam dus vandaan! ;-)) ), daar kun je ook standaard instellingen voor andere programma's inzetten, deze worden automatisch in de homedirectory van een nieuwe user gezet..

God, root, what is difference? | Talga Vassternich | IBM zuigt


  • Kogelvis
  • Registratie: Maart 2001
  • Laatst online: 06-07 17:05

Kogelvis

Nu ook met gitaar

Topicstarter
THNX

<Jeroen> Wirf: vrouwen versieren kan je gewoon in het OSI model proppen hoor :P
I am dyslexic of Borg prepare to have your ass laminated
Real Programmers always confuse Christmas and Halloween because oct31 = dec25


  • capedro
  • Registratie: Oktober 2000
  • Laatst online: 20-05 09:15
Of nog makkelijker:
/etc/inittab
code:
1
2
3
4
5
6
7
8
9
10
# getty-programs for the normal runlevels
# <id>:<runlevels>:<action>:<process>
# The "id" field  MUST be the same as the last
# characters of the device (after "tty").
1:2345:respawn:/sbin/mingetty --noclear tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6

1:2345:respawn:/sbin/mingetty --noclear tty1
En dat --noclear weghalen dus dan krijg je:
code:
1
2
3
4
5
6
7
8
9
10
# getty-programs for the normal runlevels
# <id>:<runlevels>:<action>:<process>
# The "id" field  MUST be the same as the last
# characters of the device (after "tty").
1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6

En dan:

root@****:/etc/rc.d > kill -HUP 1

gewoon het init proces restarten en dan hoef je niet moeilijk te doen met shells etc. :)

My weblog


  • active2
  • Registratie: Juni 2001
  • Laatst online: 17-07 21:56

active2

Google is your friend

Wat doe jij hier nou??
root@****:/etc/rc.d > kill -HUP 1
Dat snap ik niet wie wil het even uitleggen?

Google, Het mirakel van de 21e eeuw!!!!


  • Ikarus
  • Registratie: Maart 2000
  • Niet online

Ikarus

Nerd 1e klas

Het HUP signaal sturen naar process 1 (init) wat er voor zorgt dat init zijn config files herleest

There are two major products that come out of Berkeley: LSD and UNIX.
We don't believe this to be a coincidence. -- Jeremy S. Anderson
In short: just say NO TO DRUGS, and maybe you won't end up like the Hurd people. -- Linus TorvaldsI


Verwijderd

clear ;exit

  • [Yellow]
  • Registratie: December 2000
  • Niet online
gewoon 'init q' kan ook :)

  • capedro
  • Registratie: Oktober 2000
  • Laatst online: 20-05 09:15
Op dinsdag 18 september 2001 13:56 schreef _Yellow_ het volgende:
gewoon 'init q' kan ook :)
Kan ook maar ik was dat commando ff kwijt :(

My weblog

Pagina: 1