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
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]>
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.
>
>
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.
>
>
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.
---
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
6 matches
Mail list logo