![]() |
![]() |
![]() |
![]() |
Creating Remediation Scripts for TRITON AP-DATA > Code samples
|
6.
|
16.
|
18.
|
20.
|
21.
|
22.
|
24.
|
26.
|
29.
|
31.
|
39.
|
42.
|
43.
|
45.
|
47.
|
57.
|
![]() |
11.
|
13.
|
17.
|
21.
|
Lines 7-13 demonstrate how to write a remediation script that is valid on both Windows and Linux. It uses the sys.platform facility to determine the file system structure. Note that the complete string in sys.platform may be linux2, win32, etc - but the script only looks at the first few characters to make a determination.
|
![]() |
![]() |
![]() |
![]() |
Creating Remediation Scripts for TRITON AP-DATA > Code samples
|