MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

Crontab condition, if a file size is more than 5000K than send an email

scmuser created the topic: crontab condition, if a file size is more than 5000K than send an email

find /var/www/vhosts/domain/folder/ -name ‘*.flv’ -size +5000k | grep flv && /bin/mail -s “The file is available!” “my@address.com” > /dev/null

If grep detects a line containing the string flv in the output of find it returns 0, otherwise 1. The mail command will only be executed on exit code 0 of grep.

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
I'm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

Unix grep Quick Reference: Patterns, Options, and Real Command Examples

grep is the core Unix command for searching text by pattern across files or standard input. This revised quick reference covers syntax, high-value options, and practical examples you can use immediately.

Read More

DevSecOps: Your AWS Abuse Report – scanning remote hosts on the internet for security vulnerabilities

Incidents It has been implicated in activity which resembles scanning remote hosts on the internet for security vulnerabilities. Activity of this nature is forbidden in the AWS…

Read More

How to see number of emails sent using smtp in laravel

To see the number of emails sent using SMTP in Laravel, you can look for log entries in your Laravel application’s logs that indicate email messages have…

Read More

Linux Tutorials: Log Parsing & Pattern Search Cheat Sheet

Rajesh KumarI’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked…

Read More

Linux Tutorials: grep command & example

Find text in a file/files. The grep command searches through many files at a time to find a piece of text you are looking for. grep PATTERN…

Read More

Interview Questions & Answers Complete Guide for Linux

Linux What is your experience with Linux? Explain what each of the following commands does and give an example on how to use it: Explain each field…

Read More
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
0
Would love your thoughts, please comment.x
()
x