Run the configured command once without change detection.
Used for the optional "run on start" behavior.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(watcher_t), | intent(inout) | :: | self | |||
| character(len=*), | intent(in) | :: | cmd0 |
subroutine run_once(self, cmd0) class(watcher_t), intent(inout) :: self character(len=*), intent(in) :: cmd0 character(len=:), allocatable :: cmd integer :: exitstat real :: secs cmd = trim(cmd0) call self%fm%on_before_run_all(cmd) call run_command_and_report(cmd, self%cfg%w, exitstat, secs) call self%fm%on_after_run_all(exitstat, secs) end subroutine run_once