Artificial intelligent assistant

location for multi-user script temp file On our unix webhost, I created a set of scripts for automating the website deploy process. Since I was the only user, I had the scripts keeping track of what phase of the deploy it was in by changing values in a dot-file in my home directory: `~/.deploy`. Now we've brought another developer on board, so I moved our scripts to `/usr/local/bin` so that the other dev (and anyone else) would have access to run them. However, I want there to be one global state of the deploy process-- so I don't want the `.deploy` file to live in the home directory of the user running the scripts. What would be the global place for such a file to live? So that, in the case that one developer starts the deploy but doesn't complete it, the next user running the scripts reads the current state of the deploy, as tracked in `.deploy`. Is `/tmp` the proper place? Is a file written there accessible by all users? Will it stay there until actively deleted?

You can keep the file with the script `/usr/local/var`. However **be very careful with concurrency**. (I would not do it this way)

To keep file accessible, I would create a new group for the tool.


addgroup deployer
mkdir /usr/local/var/deployer
chgrp deployer /usr/local/var/deployer /usr/local/bin/deploy
chmod g+x /usr/local/bin/deploy

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy ad47d591aae91f05cc92c7e58a7c9b40