2
I am tailing a log file. How can I capture the output for one minute?
2
I am tailing a log file. How can I capture the output for one minute?
8
tail -f mylogfile & sleep 60; kill $!
0
You fail to mention your OS, Shell or other pertinent infos. Therefore, I recommend entering your command and watching the clock for one minute, then sending the 'break' command.
The Cron command springs to mind to schedule tasks assuming you are running an Linux/UNIX box.