Skip site navigation (1)Skip section navigation (2)
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>

next in thread | raw e-mail | index | archive | help
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01BF298B.9D256F94
Content-Type: text/plain;
	charset="iso-8859-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.

------_=_NextPart_001_01BF298B.9D256F94
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2650.12">
<TITLE>RE: Query pop3-server of progress</TITLE>
</HEAD>
<BODY>
<BR>

<P><FONT SIZE=3D2>&gt; -----Original Message-----</FONT>
<BR><FONT SIZE=3D2>&gt; From: Leif Neland [<A =
HREF=3D"mailto:leifn@neland.dk">mailto:leifn@neland.dk</A>]</FONT>
<BR><FONT SIZE=3D2>&gt; Sent: Friday, November 05, 1999 5:46 PM</FONT>
<BR><FONT SIZE=3D2>&gt; To: Jason Young</FONT>
<BR><FONT SIZE=3D2>&gt; Cc: 'Leif Neland'; =
freebsd-isp@FreeBSD.ORG</FONT>
<BR><FONT SIZE=3D2>&gt; Subject: RE: Query pop3-server of =
progress</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; &gt; If you really wanted status info exactly =
like you described </FONT>
<BR><FONT SIZE=3D2>&gt; below, and felt</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; like doing a little hacking on qpopper, =
I'd use </FONT>
<BR><FONT SIZE=3D2>&gt; 'setproctitle' to express</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; status info. It could show something like =
this:</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; </FONT>
<BR><FONT SIZE=3D2>&gt; &gt; # ps -ax</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; 77290&nbsp; ??&nbsp; =
Ss&nbsp;&nbsp;&nbsp;&nbsp; 0:17.06 popper: waiting for command =
(popper)</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; 77291&nbsp; ??&nbsp; =
Ss&nbsp;&nbsp;&nbsp;&nbsp; 0:17.06 popper: sending msg 29 (74%) =
(popper)</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; 77292&nbsp; ??&nbsp; =
Ss&nbsp;&nbsp;&nbsp;&nbsp; 0:17.06 popper: updating mailbox =
(popper)</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; </FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; This doesn't seem to be too difficult.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; However, I haven't had time to upgrade the =
mailserver from </FONT>
<BR><FONT SIZE=3D2>&gt; linux to fbsd</FONT>
<BR><FONT SIZE=3D2>&gt; yet, and setproctitle doesn't seem to exist =
under linux. At least no</FONT>
<BR><FONT SIZE=3D2>&gt; manpage is found.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Does lunix have this, or an equivalent =
function?</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Leif</FONT>
</P>

<P><FONT SIZE=3D2>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>
------_=_NextPart_001_01BF298B.9D256F94--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ABD44D466F85D311A69900A0C900DB6BC4E2>