From 4d75d3175777146e4a9fad7912839aaa957f9f9d Mon Sep 17 00:00:00 2001 From: msdos Date: Wed, 6 Sep 2017 23:45:58 -0300 Subject: [PATCH] Improve linux/unix scripts guidelines with shebang and chmod with references. --- Custom-Post-Processing-Scripts.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Custom-Post-Processing-Scripts.md b/Custom-Post-Processing-Scripts.md index e8abc75..e72269a 100644 --- a/Custom-Post-Processing-Scripts.md +++ b/Custom-Post-Processing-Scripts.md @@ -49,6 +49,10 @@ Radarr can execute a custom script when new movies are imported or renamed, depe | Movie_TvdbId | TVDB ID for the movie | ### Specific usage tips ### +#### LINUX / UNIX Scripts #### + +Remember to always add a [shebang](https://en.wikipedia.org/wiki/Shebang_(Unix)) and make your scripts executable with [chmod](https://en.wikipedia.org/wiki/Chmod). + #### PHP #### The information from Radarr will not be added to $_ENV as one might expect but should be included in the [$_SERVER variable](https://secure.php.net/manual/en/reserved.variables.server.php). A sample script to use this information to convert a file can be found [here](https://gist.github.com/karbowiak/7fb38d346e368edc9d1a). #### PowerShell ####