At 09:35 AM 7/6/01 +0930, BAARDA, Don wrote:
>G'day,
>
> > Henk-Jan Kloosterman wrote:
> >
> > > In order to do futher testing I now installed the "squirm" redirector.
> [...]
> > Why use such a complicated redirector for such a simple job?
> >
> > #!/usr/bin/perl -p
> > BEGIN { $| = 1; }
> > s%http://outlook\.company\.net%http://user:password@outlook.company.net%;
> >
> Because squirm is more light-weight than perl? Dunno.
Or just compile some C-code similar like this:
#include <stdio.h>
int main()
{ char buf[BUFSIZE];
while (fgets(buf, BUFSIZE, stdin) != NULL)
{ if ( strstr("http://outlook.company.net") )
printf("http://user:password@outlook.company.net\n");
else
printf("\n");
fflush(stdout);
}
}
Not 100% clean but it is very slim...
Marc
> ABO
---------------------------------------------------------
Marc van Selm
NATO C3 Agency, CSD/A
*********************************************************
** -- This mail is personal -- **
** All statements in this mail are made from my own **
** personal perspective and do not necessarily reflect **
** my employer's opinions or policies. **
*********************************************************
Received on Fri Jul 06 2001 - 01:27:29 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:01:02 MST