From owner-freebsd-questions@freebsd.org Thu Sep 9 06:49:01 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D395666A89E for ; Thu, 9 Sep 2021 06:49:01 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4H4qNX6pY5z3vLQ for ; Thu, 9 Sep 2021 06:49:00 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [188.174.52.146] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mODrg-0003Co-VM for freebsd-questions@freebsd.org; Thu, 09 Sep 2021 08:48:53 +0200 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.unixarea.de (8.16.1/8.14.9) with ESMTPS id 1896mqTk001632 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Thu, 9 Sep 2021 08:48:52 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.16.1/8.14.9/Submit) id 1896mq3X001631 for freebsd-questions@freebsd.org; Thu, 9 Sep 2021 08:48:52 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Thu, 9 Sep 2021 08:48:52 +0200 From: Matthias Apitz To: freebsd-questions@freebsd.org Subject: Re: monitoring incoming mailbox in console mode Message-ID: Reply-To: Matthias Apitz Mail-Followup-To: freebsd-questions@freebsd.org References: <20210908124536.GA17@sh4-5.1blu.de> <20210908203244.57309565.freebsd@edvax.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210908203244.57309565.freebsd@edvax.de> X-Operating-System: FreeBSD 13.0-CURRENT r368166 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 188.174.52.146 X-Rspamd-Queue-Id: 4H4qNX6pY5z3vLQ X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of guru@unixarea.de has no SPF policy when checking 178.254.4.101) smtp.mailfrom=guru@unixarea.de X-Spamd-Result: default: False [-1.60 / 15.00]; HAS_REPLYTO(0.00)[guru@unixarea.de]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_XOIP(0.00)[]; HAS_XAW(0.00)[]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RECEIVED_SPAMHAUS_PBL(0.00)[188.174.52.146:received]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:42730, ipnet:178.254.0.0/19, country:DE]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[unixarea.de]; R_SPF_NA(0.00)[no SPF record]; RWL_MAILSPIKE_POSSIBLE(0.00)[178.254.4.101:from]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Sep 2021 06:49:01 -0000 Thanks for the hints about biff(1). I wasn't aware of it, even if I was used to use xbiff in the past. But, biff(1) does not do anything. I run $ truss -o biff.tr -f biff b and attached is the output of biff.tr. Any ideas? matthias 1582: mmap(0x0,135168,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34361982976 (0x800224000) 1582: mprotect(0x800221000,4096,PROT_READ) = 0 (0x0) 1582: issetugid() = 0 (0x0) 1582: sigfastblock(0x1,0x800223400) = 0 (0x0) 1582: open("/etc/libmap.conf",O_RDONLY|O_CLOEXEC,010425330) = 3 (0x3) 1582: fstat(3,{ mode=-rw-r--r-- ,inode=66236,size=115,blksize=32768 }) = 0 (0x0) 1582: read(3,"# $FreeBSD: head/libexec/rtld-el"...,115) = 115 (0x73) 1582: close(3) = 0 (0x0) 1582: open("/usr/local/etc/libmap.d",O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC,0165) ERR#2 'No such file or directory' 1582: open("/var/run/ld-elf.so.hints",O_RDONLY|O_CLOEXEC,010003166) = 3 (0x3) 1582: read(3,"Ehnt\^A\0\0\0\M^@\0\0\0\M^A\^A\0"...,128) = 128 (0x80) 1582: fstat(3,{ mode=-r--r--r-- ,inode=196999,size=513,blksize=32768 }) = 0 (0x0) 1582: pread(3,"/lib:/usr/lib:/usr/lib/compat:/u"...,385,0x80) = 385 (0x181) 1582: close(3) = 0 (0x0) 1582: open("/lib/libc.so.7",O_RDONLY|O_CLOEXEC|O_VERIFY,00) = 3 (0x3) 1582: fstat(3,{ mode=-r--r--r-- ,inode=197002,size=2127288,blksize=32768 }) = 0 (0x0) 1582: mmap(0x0,4096,PROT_READ,MAP_PRIVATE|MAP_PREFAULT_READ,3,0x0) = 34362118144 (0x800245000) 1582: mmap(0x0,4366336,PROT_NONE,MAP_GUARD,-1,0x0) = 34362122240 (0x800246000) 1582: mmap(0x800246000,561152,PROT_READ,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFAULT_READ,3,0x0) = 34362122240 (0x800246000) 1582: mmap(0x8002cf000,1449984,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFAULT_READ,3,0x88000) = 34362683392 (0x8002cf000) 1582: mmap(0x800431000,40960,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFAULT_READ,3,0x1e9000) = 34364133376 (0x800431000) 1582: mmap(0x80043b000,28672,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFAULT_READ,3,0x1f2000) = 34364174336 (0x80043b000) 1582: mmap(0x800442000,2285568,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_ANON,-1,0x0) = 34364203008 (0x800442000) 1582: munmap(0x800245000,4096) = 0 (0x0) 1582: close(3) = 0 (0x0) 1582: mprotect(0x800431000,40960,PROT_READ) = 0 (0x0) 1582: mprotect(0x800431000,40960,PROT_READ|PROT_WRITE) = 0 (0x0) 1582: mprotect(0x800431000,40960,PROT_READ) = 0 (0x0) 1582: readlink("/etc/malloc.conf",0x7fffffffd5c0,1024) ERR#2 'No such file or directory' 1582: issetugid() = 0 (0x0) 1582: __sysctl("vm.overcommit",2,0x7fffffffbb54,0x7fffffffbb48,0x0,0) = 0 (0x0) 1582: mmap(0x0,2097152,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON|MAP_ALIGNED(21),-1,0x0) = 34368126976 (0x800800000) 1582: mmap(0x0,2097152,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON|MAP_ALIGNED(12),-1,0x0) = 34370224128 (0x800a00000) 1582: mmap(0x0,4194304,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON|MAP_ALIGNED(21),-1,0x0) = 34372321280 (0x800c00000) 1582: mprotect(0x202000,4096,PROT_READ) = 0 (0x0) 1582: ioctl(0,TIOCGETA,0x7fffffffe880) = 0 (0x0) 1582: ioctl(0,FIODGNAME,0x7fffffffe890) = 0 (0x0) 1582: fstatat(AT_FDCWD,"/dev/ttyv0",{ mode=crw---x--- ,inode=83,size=0,blksize=4096 },0x0) = 0 (0x0) 1582: chmod("/dev/ttyv0",020610) = 0 (0x0) 1582: exit(0x0) 1582: process exit, rval = 0 -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub August 13, 1961: Better a wall than a war. And, while the GDR was still existing, no German troups and bombs have been killed in Yugoslavia, Afghanistan, Afrika...