Tagged articles
6 articles
Page 1 of 1
Ops Community
Ops Community
Feb 13, 2026 · Operations

Mastering Crontab: From Basics to Production‑Ready Scheduling

This comprehensive guide walks you through crontab fundamentals, common pitfalls, advanced configurations like systemd timers and flock locks, performance tuning, security hardening, troubleshooting, monitoring, backup strategies, and best‑practice recommendations for reliable Linux scheduled tasks in production environments.

Linux schedulingcron best practicescrontab
0 likes · 53 min read
Mastering Crontab: From Basics to Production‑Ready Scheduling
php Courses
php Courses
Oct 13, 2023 · Backend Development

Using PHP flock() for File Locking: Concepts, Modes, and Example Code

This article explains PHP's flock() function for file locking, covering the purpose of file locks, basic usage syntax, lock modes (shared, exclusive, unlock), a complete example script, and important considerations to safely handle concurrent file access in backend applications.

file lockingfile-handlingflock
0 likes · 4 min read
Using PHP flock() for File Locking: Concepts, Modes, and Example Code
Liangxu Linux
Liangxu Linux
Feb 6, 2021 · Operations

How to Make a Bash Script Run Only Once: Lock Files and flock Explained

This guide shows how to prevent a Bash script from being executed multiple times by detecting existing instances, using lock files with process checks, and employing the flock command for reliable atomic locking, complete with practical code examples and pitfalls to avoid.

BashOperationsSingleton
0 likes · 8 min read
How to Make a Bash Script Run Only Once: Lock Files and flock Explained
ITPUB
ITPUB
Oct 19, 2016 · Fundamentals

Understanding the Differences Between flock, lockf, and fcntl for Linux File Locking

This article explains how the Linux file‑locking interfaces flock, lockf, and fcntl differ in scope, behavior, and interaction, providing detailed function prototypes, option tables, and multiple C code examples that illustrate locking across duplicated descriptors, forked processes, and exec calls.

fcntlfile lockingflock
0 likes · 14 min read
Understanding the Differences Between flock, lockf, and fcntl for Linux File Locking
MaGe Linux Operations
MaGe Linux Operations
Aug 12, 2016 · Operations

Mastering File Locks in Linux: flock vs lockf vs fcntl Explained

This article compares Linux file locking mechanisms—flock, lockf, and fcntl—detailing their prototypes, lock types, behavior with forks, dup, exec, and NFS, and provides practical code examples illustrating differences in lock scope, recursion, and interaction between advisory and POSIX locks.

LinuxSystem Programmingfcntl
0 likes · 13 min read
Mastering File Locks in Linux: flock vs lockf vs fcntl Explained