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 3305 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 to stop and disable auditd on RHEL 7
Viewed 41573 times since Tue, Aug 6, 2019
Epoch & Unix Timestamp Conversion Tools
Viewed 70391 times since Fri, Jun 22, 2018
high swap space utilization in LINUX
Viewed 7103 times since Fri, Jul 13, 2018
Secure Secure Shell
Viewed 11905 times since Fri, Aug 21, 2020
LUKS dm-crypt/Device encryption GUIDE
Viewed 2915 times since Fri, Jul 13, 2018