FG
💻 Software

how to execute command after current running command in bash?

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

Problem

I'm downloading file with wget, and I want to turn off my computer after downloading will be finished, but I need to go somewhere now :) Is it possible to execute command in bash exacly when process will be finished? I know that this works: But what if I type only:

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: how to execute command after current running command in bash?

Low Risk

You can do something like this: Suspend execution of wget with (it's not stopped, it's suspended) Put it into background with Run: will wait for all programs running in background in the current shell - i.e. this wget to finish. After wait finishes …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment