Skip to content

Commit 1589d90

Browse files
Merge pull request #225 from ISISComputingGroup/logrotate_output
Capture logrotate task output
2 parents fd748c4 + 3d652d2 commit 1589d90

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

installation_and_upgrade/ibex_install_utils/tasks/server_tasks.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,10 @@ def setup_log_rotation(self) -> None:
735735
"""Sets up instrument log rotation via windows scheduled task."""
736736
python = r"c:\instrument\apps\python3\python.exe"
737737
logrotate = r"c:\instrument\apps\epics\utils\logrotate.py"
738-
task_cmd = f"cmd.exe /c start /min {python} {logrotate}"
738+
task_cmd = (
739+
f"cmd.exe /c start /min {python} {logrotate} "
740+
r"> C:\Instrument\Var\logs\schtasks\logrotate.log 2>&1"
741+
)
739742

740743
admin_commands = AdminCommandBuilder()
741744
admin_commands.add_command(

0 commit comments

Comments
 (0)