-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 El 2007-01-05 a las 03:35 +0100, Octavio Ávalos escribió:
El Viernes, 5 de Enero de 2007 02:23, Carlos E. R. escribió:
lsof | grep ttyS
Con esta orden no me aparece nada. Si le pongo lsof | grep tty es decir sin la S. Me sale entre otras cosas:
%&$·&%%/& Pensando en voz alta. |Serial port that modem is connected to []? ttyS1 |Sorry, the device is currently in use by another program. Quien demonios dice eso y porqué. /usr/sbin/faxaddmodem es un script. Veamos. PORT=`ttyPort $TTY` # shortened tty port name LOCKX=`ttyLocks $TTY` # UUCP lock file names DEVS=`ttyAliases $TTY` # all TTY aliases tdev=`ttyDev $TTY` # TTY device to use for communication DEVID="`echo $TTY | tr '/' '_'`" # HylaFAX device identifier CONFIG=$CPATH.$DEVID # HylaFAX configuration filename # # Check that device is not currently being used. # for x in $LOCKX; do if [ -f $x ]; then echo "Sorry, the device is currently in use by another program." exit 1 fi done LOCKX es la salida del comando "ttyLocks $TTY". Ese comando no existe, lo importa de "etc/setup.modem" y es: ttyLocks() { echo $UUCP_LOCKDIR/LCK..`expr /$1 : '.*/\(.*\)'` } Cual leches es el directorio "$UUCP_LOCKDIR/". Vale, lo define "/var/spool/fax/etc/setup.cache": UUCP_LOCKDIR='/var/spool/locks' Vale, pues mira a ver el contenido del directorio "/var/spool/locks" y sus subdirectorios. A ver si existe algún fichero de nombre ttyS1. Tendrá 0 bytes. Lo borras (y lo apuntas). Si contiene algo, lo copias por otro sitio (y pon el contenido aquí, para saber que dice). Si es un symlink, nos lo dices a donde apunta. Y vuelves entonces con faxaddmodem. Y si no, pues reinicias la máquina. Yo me voy a reiniciar el cerebro. Tang! - -- Saludos Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFFncCItTMYHG2NR9URAl0/AJ9jcXl+t4sCmfzLv49tRvoM/sFTHQCeJ+Hq sIcfvmn/1aGHLPgfMeTWffc= =m9Ep -----END PGP SIGNATURE-----