b9AcE #NoEdits on Nostr: So what about when someone else made a mistake in their command-line program on ...
So what about when someone else made a mistake in their command-line program on UNIX(/Linux) systems so that it just won't quit running even though you keep hammering on <control>+c for "cancel!", "cancel!", "cancel!",
or maybe you're just uncertain if other things on the system were ready for you to run that command?
Well, usually you can just press <control>+z to "suspend" the execution of your currently running command, to get back to the command-line shell.
From there, you can just run whatever commands you want without the suspended command doing anything at all in the background,
or you can tell it to keep going stuff in the background while you're still con the command-line with the command "bg",
or you can kill the command you suspended with the simple command "kill %1" (I uhh, think the "%1" is short for just "suspended command 1" without cheating by checking),
or when you're done doing stuff and want to go back to watching your script run in the foreground, you just enter the command "fg" for it to foreground.
Super-neato.
Published at
2023-05-03 21:27:00Event JSON
{
"id": "44997fff9be07b4111b2db2d02ab755b50bf5ca487beec7c6a2af7fb63d37934",
"pubkey": "adc8fe765f1ee1b5d721a64dee9006277bb03c60824e45d6f5c0f7897485fd4d",
"created_at": 1683149220,
"kind": 1,
"tags": [
[
"e",
"81fb8f5789b7cfb01f236e50c7c56aaa22d7134d0da44dbcce74e2762b720a25",
"wss://relay.mostr.pub",
"reply"
],
[
"mostr",
"https://todon.eu/users/b9AcE/statuses/110306867312113283"
]
],
"content": "So what about when someone else made a mistake in their command-line program on UNIX(/Linux) systems so that it just won't quit running even though you keep hammering on \u003ccontrol\u003e+c for \"cancel!\", \"cancel!\", \"cancel!\",\nor maybe you're just uncertain if other things on the system were ready for you to run that command?\n\nWell, usually you can just press \u003ccontrol\u003e+z to \"suspend\" the execution of your currently running command, to get back to the command-line shell.\nFrom there, you can just run whatever commands you want without the suspended command doing anything at all in the background,\nor you can tell it to keep going stuff in the background while you're still con the command-line with the command \"bg\",\nor you can kill the command you suspended with the simple command \"kill %1\" (I uhh, think the \"%1\" is short for just \"suspended command 1\" without cheating by checking),\nor when you're done doing stuff and want to go back to watching your script run in the foreground, you just enter the command \"fg\" for it to foreground.\n\nSuper-neato.",
"sig": "b4652edc1bc9d5250a42f045f159f367723a18936fde16cf5db8139db88085cf862e47bc9d931426ea5f4dfc7e32ed270a023ca56e0cec508a915bdf8b254dbd"
}