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
Linux - Cannot login from remote console but can access via ssh
Viewed 6342 times since Fri, Jun 8, 2018
Linux PAM configuration that allows or deny login via the sshd server
Viewed 2790 times since Wed, Oct 3, 2018
ZFS: Verify/change properties of a zfs filesystem
Viewed 3585 times since Sun, Jun 3, 2018
linux-training.be gives you books for free to study Linux
Viewed 5729 times since Sat, Jun 2, 2018
Inxi – A Powerful Feature-Rich Commandline System Information Tool for Linux
Viewed 19890 times since Sat, Jun 2, 2018
zabbix linux How to solve apache error No space left on device: Cannot create SSLMutex
Viewed 3452 times since Wed, Nov 11, 2020
Linux Linux Network Statistics Tools / Commands
Viewed 10636 times since Mon, Sep 21, 2020
Using stunnel and TinyProxy to obfuscate HTTP traffic
Viewed 8548 times since Fri, Sep 28, 2018
Netcat shell zabezpieczony hasłem
Viewed 2998 times since Thu, May 24, 2018
HowTo: The Ultimate Logrotate Command Tutorial with 10 Examples
Viewed 7372 times since Fri, Nov 30, 2018