Date: Sun, 7 Nov 1999 19:50:20 -0600 From: Jason Young <doogie@staff.accessus.net> To: 'Leif Neland' <leifn@neland.dk> Cc: freebsd-isp@FreeBSD.ORG Subject: RE: Query pop3-server of progress Message-ID: <ABD44D466F85D311A69900A0C900DB6BC4E2@staff.accessus.net>
index | next in thread | raw e-mail
[-- Attachment #1 --] > -----Original Message----- > From: Leif Neland [mailto:leifn@neland.dk] > Sent: Friday, November 05, 1999 5:46 PM > To: Jason Young > Cc: 'Leif Neland'; freebsd-isp@FreeBSD.ORG > Subject: RE: Query pop3-server of progress > > > > If you really wanted status info exactly like you described > below, and felt > > like doing a little hacking on qpopper, I'd use > 'setproctitle' to express > > status info. It could show something like this: > > > > # ps -ax > > 77290 ?? Ss 0:17.06 popper: waiting for command (popper) > > 77291 ?? Ss 0:17.06 popper: sending msg 29 (74%) (popper) > > 77292 ?? Ss 0:17.06 popper: updating mailbox (popper) > > > > This doesn't seem to be too difficult. > > However, I haven't had time to upgrade the mailserver from > linux to fbsd > yet, and setproctitle doesn't seem to exist under linux. At least no > manpage is found. > > Does lunix have this, or an equivalent function? > > Leif Well, it's got an equivalent somewhere. One method has been overwriting argv[0], but I'm not sure if that works on Linux (it didn't work on one very simple test I tried). Try downloading a copy of the Sendmail source and seeing how it accomplishes the task. [-- Attachment #2 --] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2650.12"> <TITLE>RE: Query pop3-server of progress</TITLE> </HEAD> <BODY> <BR> <P><FONT SIZE=2>> -----Original Message-----</FONT> <BR><FONT SIZE=2>> From: Leif Neland [<A HREF="mailto:leifn@neland.dk">mailto:leifn@neland.dk</A>]</FONT> <BR><FONT SIZE=2>> Sent: Friday, November 05, 1999 5:46 PM</FONT> <BR><FONT SIZE=2>> To: Jason Young</FONT> <BR><FONT SIZE=2>> Cc: 'Leif Neland'; freebsd-isp@FreeBSD.ORG</FONT> <BR><FONT SIZE=2>> Subject: RE: Query pop3-server of progress</FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> > If you really wanted status info exactly like you described </FONT> <BR><FONT SIZE=2>> below, and felt</FONT> <BR><FONT SIZE=2>> > like doing a little hacking on qpopper, I'd use </FONT> <BR><FONT SIZE=2>> 'setproctitle' to express</FONT> <BR><FONT SIZE=2>> > status info. It could show something like this:</FONT> <BR><FONT SIZE=2>> > </FONT> <BR><FONT SIZE=2>> > # ps -ax</FONT> <BR><FONT SIZE=2>> > 77290 ?? Ss 0:17.06 popper: waiting for command (popper)</FONT> <BR><FONT SIZE=2>> > 77291 ?? Ss 0:17.06 popper: sending msg 29 (74%) (popper)</FONT> <BR><FONT SIZE=2>> > 77292 ?? Ss 0:17.06 popper: updating mailbox (popper)</FONT> <BR><FONT SIZE=2>> > </FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> This doesn't seem to be too difficult.</FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> However, I haven't had time to upgrade the mailserver from </FONT> <BR><FONT SIZE=2>> linux to fbsd</FONT> <BR><FONT SIZE=2>> yet, and setproctitle doesn't seem to exist under linux. At least no</FONT> <BR><FONT SIZE=2>> manpage is found.</FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> Does lunix have this, or an equivalent function?</FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> Leif</FONT> </P> <P><FONT SIZE=2>Well, it's got an equivalent somewhere. One method has been overwriting argv[0], but I'm not sure if that works on Linux (it didn't work on one very simple test I tried). Try downloading a copy of the Sendmail source and seeing how it accomplishes the task.</FONT></P> </BODY> </HTML>help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ABD44D466F85D311A69900A0C900DB6BC4E2>
