dnd 5e – Does the Protection from Evil and Good spell kill the host of an Intellect Devourer?

The intellect devourer consumes its host’s mind in a two step process

First it uses “Devour Intellect”

The intellect devourer targets one creature it can see within 10 feet of it that has a brain. The target must succeed on a DC 12 Intelligence saving throw against this magic or take 11 (2d10) psychic damage. Also on a failure, roll 3d6: If the total equals or exceeds the target’s Intelligence score, that score is reduced to 0. The target is stunned until it regains at least one point of Intelligence

This ability does not kill the potential host – but it does drop its intelligence to 0 and stun it. This is powerful indeed, but look what the Devourer has to do to accomplish it: have the host fail a save, and then another mechanic which will only go in favor of the Devour half the time against a target of average intelligence. Effectively two failed saves on the same turn. And to do this, it has to be within 10 feet of its host, when it has an AC of 12 and 21 hp (although it does have non-magic damage resistance).

Once the host is stunned (and thus, incapacitated) and has an intelligence of 0 (and thus, -5 on its Intelligence contest) the Devourer can employ its second ability, “Body Thief”

The intellect devourer initiates an Intelligence contest with an incapacitated humanoid within 5 feet of it. If it wins the contest, the intellect devourer magically consumes the target’s brain, teleports into the target’s skull, and takes control of the target’s body.

This second ability does kill the host’s mind, but it is unlikely to succeed unless the first ability has been used. Remember, to use this, the target must already be incapacitated. The Devourer has an Int mod of +1. Unless its potential host has also had its Int reduced, it doesn’t have a great chance to win the Intelligence contest.

Although the Devourer has Multiattack, it cannot use both Devour Intellect and Body Thief on the same turn. So we are talking about a two round process requiring three successful rolls and unable to be initiated unless the Devourer is within 10 feet. This is dangerous against a single opponent the Devourer manages to surprise. Against an alert party, even one of Level 2, the Devourer is unlikely to be able to finish the second ability, the one that actually kills the host.

14.04 – Kill ( curl ) the process and start new one

I am working on bash script where I need to move 60 files to one folder and curl the api call and wait for another hour to move the 60 files and do the same. so basically I wrote two scripts

**script 1 : scan the folder and move one file every min to the destination folder.**
#/bin/bash

#for (( c=1; c<=5; c++ ))
#do  
 #  echo "Welcome $c times"
XMLS="/home/administrator/app/public/2019-02/*"
for f in $XMLS
do
  echo "Processing $f file..."
  # take action on each file. $f store current file name
#  ls $f
cp $f /home/administrator/app/public/xml/
mv $f /home/administrator/Done/
sleep 60
done
#done

SCRIPT 2: #/bin/bash

curl http://IP$:3000/upload-video

please help me understand if I can use pgrep or any other command to make sure that it triggers every hour.

thank you

ubuntu – How to kill the php page ran via Cron if it is still executing

I don’t know whether this is right place to post this, if not please bear with me.

I have CRON that executes PHP page at 03:00 am.

This php page, goes through several data, that it takes an average 1 hour to complete, or sometimes even little more.

Problem

For some reason I don’t want this cron (php page) to take more than 1 hour to process what it has made for.

So, How to kill if that page is still executing at 04:05 am.

Thanks

browser – Powershell: Kill parents not child?

I start by clicking an icon to run a CMD batch file. (black CMD window) That opens a powershell script. In turn, that starts a second script that opens a GUI. The user makes a selection in the GUI, and a browser window opens.

However, once the browser opens, it leaves the CMD open (might be able to ‘kill’ that by removing the CMD/k that’s in the batch file to enable error cheking). But can I ‘kill’ the GUI once the browser has opened?

I am currently using “Start-Process” to open the GUI, and then another “Start-Process” in second script to open the browser. Since I believe it’s ‘single thread’, I’m thinking that each process has got to wait for it’s ‘child’ to finish before it can close itself, whereas ideally I would like CMD / Powershell to exit once browsers have opened.

** I have not posted code as so far it is over 300 lines.

sql server – “Cannot continue the execution because the session is in the kill state” Error?

We use SQL Server 2019 Standard edition on Windows Server 2019. We have 200 users and thousands of connections at the same time.

SQL Server 2019 raises an error

Cannot continue the execution because the session is in the kill state

Once a week I restart the SQL Server service and the error is gone.

  • I install CU1, CU3, CU4, CU5 and CU6… Error doesn’t fixed.

  • Databases compatibility level: SQL Server 2019 (150)

  • Our programs use mostly 4 tables. I read, broken indexes could cause this error. I check these tables indexes, no problem found. Anyway I rebuild all indexes for these 4 tables. Bu error doesn’t fixed.

How could I detect the root cause of this error, and how could I fix it?

Thanks.

batch file – How to kill a App once GPU Usage is below set Threshold using a given GPU? per nvidia-smi in Windows in a batchfile, help would be nice

would love to know how to integrate GPU Threshold once reached for example bellow 10% Usage for the Program/App to exit and if possible in a batch file , ive tried with a mix of cpu+memory threshold but that dont always work proper in all Apps , so i thought gpu threshold would solve this since its pretty definite at times unlike cpu+memory thresholds which can vary greatly sometimes , heres a batch example for the cpu+memory threshold that needs a gpu threshold included>

@echo OFF
::========= Set cpuThreshold (%) and memThreshold (according to displayed 
value in Cmd window) =========
set /a cpuThreshold=10        & set /a memThreshold=450000        
::initialize vars                            and set process_name:
set /a low=0 & setlocal enableDelayedExpansion & set 
process_name=Folding.exe
set pn=%process_name:.exe=%
::==================================================================
::Launch the App
start "" "Folding.exe"
TIMEOUT /t 2
::Get NumberOfCores
for /f "tokens=*" %%f in ('wmic cpu get NumberOfCores /value ^| find "="') do 
set %%f
:CheckCpuAndMem
set /a process_snapshot=0 & set /a memUsg=0
::CPU
for /f skip^=2^ tokens^=3^ delims^=^" %%p in (
'typeperf "Process(%pn%)%% Processor Time" -sc 1') do for /f "tokens=1 
 delims=." %%a in (
"%%p") do set /a process_snapshot=%%a/%NumberOfCores%
if %process_snapshot% LSS %cpuThreshold% (set /a low+=1) else (set /a low=0)
::Mem
for /f "tokens=5" %%p in (
'tasklist ^|findstr %process_name%') do for /f "tokens=1,2,3 delims=." %%a in 
("%%p") do set /a memUsg=%%a%%b%%c/1000
if %memUsg% lss %memThreshold% (set /a low+=1) else (set /a low=0)
::echo feedback
@echo process_snapshot: %process_snapshot%, memUsage: %memUsg%;    
LowCpuAndMem: %low%
::12 checks (Cpu & Mem) times 3 sec timeout plus processing delay yields ca 
30 
sec
if %low% GEQ 12 taskkill /F /T /IM %process_name% & goto RUNNING
timeout /t 3
tasklist|findstr %process_name% > nul && GOTO CheckCpuAndMem
exit /b
timeout /t 1
GOTO RUNNING

adb – How To enable The “disable factory reset disabled by kill switch”

I am trying to block some one who has physical access to the device from factory resetting it- in the settings menu and by pressing Power_key + Volume_Down_Key and resetting it there.
I Have Seen This Done In The Past.
This device is a LG Exalt Flip Phone – it has no google account assigned to it as a owner
I Would Like To Do This Without Any 3rd party Software, Rather in a custom app i would make OR any Other Admin Control
Any Information Would Be GREATLY Appreciated
Thank You

mac – Created a looping Automator application. Now process is running indefinitely by launchd and cannot kill it

I’m losing my mind.

I created a super simple Application in Mac Automator which just runs a one-line Python script and then has a loop action at the end. I ran this and it started working. Then no matter what I tried, deleting the application, killing the process, it doesn’t stop.

For one, the PID of the process is constantly changing and the parent process seems to be launchd (1). And I know it’s still running because the Python script writes “foo” to a .txt file I have and it’s still writing it. I tried rebooting to no success either.

Please tell me how to stop this process..

wi fi – Can I kill wifi on my Android, similar to how kill -9 would work on a desktop, to force restart it?

Since I upgraded to Android 10, wifi on my phone frequently “dies” and forces me to restart the phone. Is there a way to achieve something similar to what kill -9 does on a desktop system on the processes responsible for wifi to force it to restart?

The problem is that wifi is turned of and can’t be turned on again. If I tap the wifi switch in system preferences it briefly goes to on but then immediately reverts to off.

The device is rooted.

drivers – selenium.common.exceptions.WebDriverException: Message: invalid argument: can’t kill an exited process

This is my sample code to run the Firefox browser which i want to run in the centos 7.

from selenium import webdriver
browser = webdriver.Firefox()

For the above code this is the error I’m facing, And my firefox version is Mozilla Firefox 68.10.0esr, and geckodriver version is geckodriver 0.26.0 (e9783a644016 2019-10-10 13:38 +0000).

Traceback (most recent call last):
File “test.py”, line 5, in
browser = webdriver.Firefox()
File “/usr/local/lib/python3.6/site-packages/selenium/webdriver/firefox/webdriver.py”, line 174, in init
keep_alive=True)
File “/usr/local/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py”, line 157, in init
self.start_session(capabilities, browser_profile)
File “/usr/local/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py”, line 252, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File “/usr/local/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py”, line 321, in execute
self.error_handler.check_response(response)
File “/usr/local/lib/python3.6/site-packages/selenium/webdriver/remote/errorhandler.py”, line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: invalid argument: can’t kill an exited process