A long time ago I copied/modified a script that used inotify to tell me the results of an automatic clamscan when something was downloaded to Downloads - I followed this online resource: https://fitzcarraldoblog.wordpress.com/2017/03/05/using-the-clamav-daemon-to-scan-files-placed-in-my-downloads-directory-in-gentoo-linux/.
My question: How do I find out what is executing this script, called clamscanInotify.sh?
Though the tutorial suggested using crontab, which I did and have since edited out of my crontab -e file, this script is still somehow being executed.
I have checked;
my user's crontab,
my root's crontab,
all the cron.daily/weekly/etc,
/etc/cron.d/
and cannot what is executing the script. I've looked in the journal using;
journalctl -b | grep cron
or for when I know the approximate time I downloaded something,
journalctl -b | grep -e "10:00"
I've also just used grep to search for the string of the name of the executable - clamscanInotify.sh,
sudo grep -rnw / -e "clamscanInotify.sh",
but did not find the string anywhere, not even in /etc/.
I do not have at/atd daemon and I cannot think of what else to do to look for whatever is calling this executable script, clamscanInotify.sh.
It is also not in Linux Mint's "Startup Applications" selection using the GUI for the desktop.
I don't simply want to delete the *.sh file, but my screen and terminals filling up with zenity windows and messages is annoying.
Any ideas of where to look?
PS
Here is a pic of my (h)top;

ps -o ppid= -p $PPIDunless the currently running child (or its immediate parent) were double-forked and thus have PID one as their "foster grandparent"? Also there are alternatives tocrondsuch asatd. Could it be that you ended up choosing one of those? – 0xC0000022L Nov 07 '18 at 09:00