Hi all,
So I want to have a script, that I'm using Webmin to run, capture the output of the script into a file that I can then have emailed to myself.
When I tried adding exec &> capture.txt to the top of the script, I got a permission denied error about creating the file. I dont really understand why this is happening, my only idea is that the directory the file is trying to be created in is not something that can be written to? But I dont understand where the file was going to be written to....
Any guidance?
So I want to have a script, that I'm using Webmin to run, capture the output of the script into a file that I can then have emailed to myself.
When I tried adding exec &> capture.txt to the top of the script, I got a permission denied error about creating the file. I dont really understand why this is happening, my only idea is that the directory the file is trying to be created in is not something that can be written to? But I dont understand where the file was going to be written to....
Any guidance?
Comment