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 3483 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

LVM basic
Viewed 2885 times since Sat, Jun 2, 2018
Linux RAID Mdadm Cheat Sheet
Viewed 6513 times since Fri, May 15, 2020
Secure Secure Shell
Viewed 12968 times since Fri, Aug 21, 2020
Using grep to find string in files
Viewed 3249 times since Fri, May 15, 2020
How to use yum command on CentOS/RHEL
Viewed 12097 times since Wed, Oct 17, 2018
Telnet – Send GET/HEAD HTTP Request
Viewed 4705 times since Mon, Feb 18, 2019