kai ego mia apo ta idia (again)

Giorgos Keramidas keramida at hades.hell.gr
Mon Sep 27 23:30:00 EEST 1999


On Sat, Sep 25, 1999 at 07:50:56PM +0300, Aggelos Velissaratos wrote:
| Diavasa kapoy, oti ayto mporei na ginei meso toy minicom.

Nai kala diabases mporei na ginei kai me to minicom.  Apla prota frontise na
ftiakseis ena link apo to /dev/modem stin katallili seiriaki, p.x. an to
modem einai stin COM2, tote ekteleis (apo root):

	# cd /dev
	# ln -s ttyS1 modem

Meta trekse mia fora apo root to minicom me tin parametro -s gia na
ftiakseis to proka0orismeno setup, oste san xristis na min xreiazetai na
peirazeis to modem sou.  H entoli eipame einai:

	# minicom -s

| Eno pao na to xekiniso (to minicom) moy vgazei minima oti to modem einai
| kleidomeno(modem locked).

Auto snmaivei pos kapoio programma pou etrekses kai psofise apotoma, eixe
kleidosei to modem, ftiaxnontas ena arxeio sto /var/lock me onoma kati san
to /var/lock/LCK..ttyS1 pou to minicom otan to dei theorei pos kapoio allo
programma exei 'anoiksei' to modem device kai paizei mazi tou.

Kata pasa pithanotita auto to arxeio exei ksemeinei ekei apo kapoio palio
paixnidi me to modem sou, an kai genika ta startup scripts eprepe na exoun
frontisei na katharizei to /var/lock apo 'stale locks' opws legontai kai sta
agglika (nai, bariemai na koitakso to webster's gia na to metafraso :p).

Pngaive kai sbnse auto to palio lock file, kai meta gia na min tin
ksanapatiseis apo tetoia lock files, psakse se poio startup script to
sustnma sou katharizei to /var/run/utmp, me kati san:

	:> /var/run/utmp		# smile for me, please

kai bale ekei pera kai ta eksns:

	/bin/rm -f /var/lock/*

wste to /var/lock na katharizei oso to dunaton pio grhgora.

-- 
Giorgos Keramidas, <keramida at ceid.upatras.gr>
Public PGP key at finger://keramida@diogenis.ceid.upatras.gr/
"Today is not yesterday's tomorrow, but tomorrow's yesterday."
--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at hellug.gr
Ta archives tis listas einai sto http://lists.hellug.gr/archives
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users at hellug.gr
====================================================================



More information about the Linux-greek-users mailing list