What happens if you edit a script during execution?
45
votes
4
answers
21775
views
I have a general question, which might be a result of misunderstanding of how processes are handled in Linux.
I am going to define a 'script' as a snippet of bash code saved to a text file with execute permissions enabled for the current user.
I have a series of scripts that call each other in tandem called A, B, and C. Script A carries out a series of statements, then pauses, then executes script B, then pauses, then executes script C. The series of steps is like this:
Run Script A:
1. Series of statements
2. Pause
3. Run Script B
4. Pause
5. Run Script C
If I run script A until the first pause, then make edits in script B or C, those edits are reflected in the execution of the code when I allow it to resume
Is there any way to edit Script A while it is still running? Or is editing impossible once execution begins?
Asked by CaffeineConnoisseur
(665 rep)
Aug 28, 2013, 03:37 AM
Last activity: Jul 22, 2025, 02:09 PM
Last activity: Jul 22, 2025, 02:09 PM