Re: pipe help

2001-10-28 Thread Andrew Perrin
Because that's how I tend to think :) ap -- Andrew J Perrin - [EMAIL PROTECTED] - http://www.unc.edu/~aperrin Assistant Professor of Sociology, U of North Carolina, Chapel Hill 269 Hamilton Hall, CB#3210, Chapel Hill, NC 2

Re: pipe help

2001-10-28 Thread Brian Nelson
Andrew Perrin <[EMAIL PROTECTED]> writes: > I do almost exactly this task using a small perl script: > > #!/usr/local/bin/perl > > `/bin/date`; > `traceroute imap.unc.edu`; > > __END__ and this is #!/usr/.../perl instead of #!/bin/sh for what reason? -- Brian Nelson <[EMAIL PROTECTED]>

Re: pipe help

2001-10-28 Thread Karsten M. Self
on Fri, Oct 26, 2001 at 07:29:36PM -0500, Hall Stevenson ([EMAIL PROTECTED]) wrote: > I think this should be simple... > > I want to run a command (traceroute) and have the date/time listed > before the trace output. I'll do this multiple times and want to keep > appending to the same file. > >

Re: pipe help

2001-10-28 Thread Karsten M. Self
on Fri, Oct 26, 2001 at 07:29:36PM -0500, Hall Stevenson ([EMAIL PROTECTED]) wrote: > I think this should be simple... > > I want to run a command (traceroute) and have the date/time listed > before the trace output. I'll do this multiple times and want to keep > appending to the same file. > >

Re: pipe help

2001-10-28 Thread Andrew Perrin
I do almost exactly this task using a small perl script: #!/usr/local/bin/perl `/bin/date`; `traceroute imap.unc.edu`; __END__ and have a crontab entry running the script >> /var/log/pinglog at the appropriate times. Hope this helps. ---

pipe help

2001-10-27 Thread Hall Stevenson
I think this should be simple... I want to run a command (traceroute) and have the date/time listed before the trace output. I'll do this multiple times and want to keep appending to the same file. The results will ideally look something like this: 'date/time' (trace results) 'date/time' (trace