I'm making a script and every time something is done I would like to write into my custom .log file. How do I do that?
And in the end.. I'd just like to read it with Bash,.. do I just use cat?
I am creating an app where I need to read in a file, possibly make changes and write back. At the moment I have the initial file in assets and it reads in fine, I have just found out however that you cannot write to that location.
Is there anyway in linux (I don't care which distribution or flavor) to have a dynamic file system with read/write hooks? For example I would like to mount a dynamic file system at /dynamic and whenever I try to read/write to a non-existing location a bash script or program is run.
I'm trying to create a somewhat simple bash script to install a headless vncserver on a machine. I have ALMOST everything perfect except for one part that keeps giving me problems. I can't seem to find a way to write to a file that has all of the parameters i'm including in the script.
I would like to know if it's possible in a bash script to include a python script in order to write (in the bash script) the return value of a funnction I wrote in my python program ?
my file "file.py" has a function which returns a variable value "my_value" (which represents the name of a file but anyway)
I want to create a bash script which has to be able to execute a commande lin
I need a bash script (not sure how to write the actual .sh file) which I could set to be run by cron every minute and that would delete files with the name index.html that are in a specific directory and its subdirectories.
I believe that the following command will do that.