Odpalenie polecenia tylko na jedną godzinę

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)
0 (0)
Article Rating (No Votes)
Rate this article
Attachments
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
Tropienie pożeracza dysku
Viewed 822 times since Thu, May 24, 2018
RHEL : How to deal with “CLOSE_WAIT” and “TIME_WAIT” connection
Viewed 3114 times since Thu, Feb 14, 2019
ZFS: Create a new zfs filesystem
Viewed 637 times since Sun, Jun 3, 2018
RHEL7: How to get started with Firewalld.
Viewed 1203 times since Wed, May 22, 2019
Linux - How to perform I/O performance test with dd command
Viewed 517 times since Fri, Jun 8, 2018
Red Hat Cluster Tutorial
Viewed 686 times since Sun, Jun 3, 2018
10 Linux nslookup Command Examples for DNS Lookup
Viewed 493 times since Sun, Sep 30, 2018
VMWare tools free
Viewed 1643 times since Mon, Jul 16, 2018
Enabling or disabling a repository using Red Hat Subscription Management
Viewed 866 times since Mon, Oct 29, 2018
Linux Audit The Linux security blog about Auditing, Hardening, and Compliance lynis
Viewed 275 times since Thu, Jan 16, 2020