'lsof' doesn't work in cronjob
I have the following example script set up in a cronjob that runs every minute:
lsof > /root/file
* * * * * /root/lsof.sh | tee /root/thisfile
After every minute, the file '/root/thisfile' is created but there is nothing in it. No matter how many different ways I try I cannot get the output of 'lsof' to show up when running in a cronjob.