User Tools

Site Tools


pages:howtos:bash:writing-robust-bash-shell-scripts

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
pages:howtos:bash:writing-robust-bash-shell-scripts [2021/02/10 15:48] mischerhpages:howtos:bash:writing-robust-bash-shell-scripts [2021/12/09 22:01] (current) – [Be atomic] rokkitlawnchair
Line 211: Line 211:
 The disadvantage of this technique is that you need to use twice as much disk space and that any process that keeps files open for a long time will still have the old files open and not the new ones, so you would have to restart those processes if this is the case. In our example this isn’t a problem as apache opens the files every request. You can check for files with files open by using **lsof**. An advantage is that you now have a backup before you made your changes in case you need to revert. The disadvantage of this technique is that you need to use twice as much disk space and that any process that keeps files open for a long time will still have the old files open and not the new ones, so you would have to restart those processes if this is the case. In our example this isn’t a problem as apache opens the files every request. You can check for files with files open by using **lsof**. An advantage is that you now have a backup before you made your changes in case you need to revert.
  
 +----
 +~~DISCUSSION~~
pages/howtos/bash/writing-robust-bash-shell-scripts.1612972088.txt.gz · Last modified: 2021/02/10 15:48 by mischerh