Re: run cmd, writing output to log file

2021-10-05 Thread Andy Bach
What Ken said: while (<$ch>) { print $fh "$PaddedDateStr $_"; } On Tue, Oct 5, 2021 at 2:46 PM Ken Slater wrote: > > > On Tue, Oct 5, 2021 at 3:35 PM reader wrote: > >> Whenever I don't do scripting for longish periods, next time I start >> writing a perl script, an awful lot of usefu

Re: run cmd, writing output to log file

2021-10-05 Thread Ken Slater
On Tue, Oct 5, 2021 at 3:35 PM reader wrote: > Whenever I don't do scripting for longish periods, next time I start > writing a perl script, an awful lot of useful info has flew right out > of my pea brain. > > I was pretty sure I have written perl scripts that wrote to log files > with out prob

run cmd, writing output to log file

2021-10-05 Thread reader
Whenever I don't do scripting for longish periods, next time I start writing a perl script, an awful lot of useful info has flew right out of my pea brain. I was pretty sure I have written perl scripts that wrote to log files with out problems but the script below does not. Instead if throws thi