FG

How do I kill a screen if I know the name of it?

Fresh3 days ago
Mar 15, 202630007 views
Confidence Score0%
0%

Problem

I have a screen named 'foo' that I started using the command I want to put this in cron, and restart it nightly by killing the screen. The reason I'm using a screen is my command starts up several other procs and this will ensure they all exit. So... what is the command to kill sceen 'foo'? Thanks!

Error Output

screen -S foo -d -m  my_command_goes_here.

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How do I kill a screen if I know the name of it?

Low Risk

From the man page:

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment