Ubuntu unable to edit command.json (gets overwritten)
-
I'm running Ubuntu 16.04 and trying to edit the command.json file. If I do and triggercmd is running (it's a headless server, triggercmd runs as a service) the edits don't persist. If I stop the service and edit the file it's fine, until I start the triggercmd service again and then it changes the file to what it was prior to the edit.
Any help would be appreciated, I can't figure out how to get any changes to persist.
-
@rktdno, the agent keeps a backup of the commands.json file, and whenever it finds invalid json in the commands.json file, it restores the backup.
You could copy/paste your json into an online json parser like this one to check your syntax:
https://jsonformatter.org/json-parserSometimes it's just a comma at the end of the last entry, or maybe you're not escaping some quotes in a command.
-
@Russ Thanks for that. Indeed, beaten by the comma. Thanks for the help.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login