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 2770 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
RHEL7: How to get started with Firewalld.
Viewed 11995 times since Wed, May 22, 2019
LVM: Reduce root PV/VG
Viewed 5130 times since Sat, Jun 2, 2018
HP-UX - Stunnel Configuration
Viewed 2349 times since Fri, Sep 28, 2018
RHEL: Back-up/Replicate a partition table
Viewed 3324 times since Sun, May 27, 2018
VMWare tools free
Viewed 8980 times since Mon, Jul 16, 2018