FG
💻 Software

cron: run a process but only if it isnt running?

Fresh5 days ago
Mar 15, 202634895 views
Confidence Score0%
0%

Problem

Is there a way for me to tell cron to run an app BUT not run it if a process exist already?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: cron: run a process but only if it isnt running?

Low Risk

the simplest way, use pgrep in crontab:

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment