Odpalenie polecenia tylko na jedną godzinę
Article Number: 41 | Rating: Unrated | Last Updated: Thu, May 24, 2018 4:06 PM
Użycie polecenia timeout do uruchomienia wybranego polecenia na określony czas działania:
timeout 1h tcpdump -n -i eth0 -w network.pcap not host 192.168.1.5
lub
tcpdump -n -i eth0 -w & pid=$! ; (sleep 3600 ; kill $pid)
Posted - Thu, May 24, 2018 4:06 PM. This article has been viewed 2961 times.
Filed Under:
Linux
There are no attachments for this article.
There are no comments for this article. Be the first to post a comment.
Related Articles

How log rotation works with logrotate
Viewed 5039 times since Fri, Nov 30, 2018
12 Linux Rsync Options in Linux Explained
Viewed 12191 times since Wed, Oct 31, 2018
Tropienie pożeracza dysku
Viewed 2395 times since Thu, May 24, 2018