sync_scripts_in_bin_via_nextcloud_between_linux_systems

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Last revisionBoth sides next revision
sync_scripts_in_bin_via_nextcloud_between_linux_systems [01.07.2021 14:14] – created Pascal Sutersync_scripts_in_bin_via_nextcloud_between_linux_systems [01.07.2021 14:14] – ["why didn't you..."] Pascal Suter
Line 48: Line 48:
 ===== "why didn't you..." ===== ===== "why didn't you..." =====
 ... simply create a startup script that runs ''chmod +x ~/Nextcloud/homebin/*'' on startup? Well, that would have worked and been easier, but i am not very good on shutting down my systems, so some of them run for months and laptops go to standby between active sessions, so the login scripts aren't executed all that often. If i add new scripts in the meantime, they will be synced via nextcloud but won't be executable then.  ... simply create a startup script that runs ''chmod +x ~/Nextcloud/homebin/*'' on startup? Well, that would have worked and been easier, but i am not very good on shutting down my systems, so some of them run for months and laptops go to standby between active sessions, so the login scripts aren't executed all that often. If i add new scripts in the meantime, they will be synced via nextcloud but won't be executable then. 
 +
 ... create a cron job that runs the above ''chmod'' every few minutes? That would have been possible and it probably would have solved the problem sufficiently for this specific case, but i have some other directories where I also want to be able to store posix properties, and there not all the files should be executable. The posixovl solution allows to "disalbe" scripts to make sure they are not accidently executed (they won't appear in tab completion either) and it works instantaneously, as soon as the script is synced it is also executable on all machines. so all in all just more flexible and elegant :)  ... create a cron job that runs the above ''chmod'' every few minutes? That would have been possible and it probably would have solved the problem sufficiently for this specific case, but i have some other directories where I also want to be able to store posix properties, and there not all the files should be executable. The posixovl solution allows to "disalbe" scripts to make sure they are not accidently executed (they won't appear in tab completion either) and it works instantaneously, as soon as the script is synced it is also executable on all machines. so all in all just more flexible and elegant :) 
  
  • sync_scripts_in_bin_via_nextcloud_between_linux_systems.txt
  • Last modified: 01.07.2021 16:28
  • by Pascal Suter