Posted on 04-05-2017 04:58 PM
Since the JSS 9.98 upgrade, all script results are displayed on a single line in the JSS policy logs. Where line breaks should be, the HTML tag for line break is seen. To view results proper, I have to paste them into Text Wrangler, then save and open as HTML.
Below is an example. A simple test with
ls /Folder
Solved! Go to Solution.
Posted on 04-13-2017 07:03 AM
[PI-003837] Policies with scripts or Files & Processes: Execute Command does not respect line breaks
Posted on 04-11-2017 04:48 PM
Same issue here. See example of an output...
Script result: Wed Mar 29 13:12:31 PDT 2017: Current Flash version: 24.0.0.221<br/>Wed Mar 29 13:12:31 PDT 2017: Available Flash version: 25.0.0.127<br/>Wed Mar 29 13:12:31 PDT 2017: Downloading newer version.<br/>usage: dirname path<br/>Wed Mar 29 13:12:33 PDT 2017: Mounting installer disk image.<br/>usage: dirname path<br/>Wed Mar 29 13:12:38 PDT 2017: Installing...<br/>Wed Mar 29 13:12:55 PDT 2017: Unmounting installer disk image.<br/>Wed Mar 29 13:13:05 PDT 2017: Deleting disk image.<br/>usage: dirname path<br/>Wed Mar 29 13:13:05 PDT 2017: SUCCESS: Flash has been updated to version 25.0.0.127<br/>
Posted on 04-13-2017 07:03 AM
[PI-003837] Policies with scripts or Files & Processes: Execute Command does not respect line breaks
Posted on 04-13-2017 09:24 AM
Well, guess we need Jamf Pro 10!
My workaround for now is a service I created in automator to render the results as html..
¯_(ツ)_/¯
Posted on 08-31-2017 10:10 AM
I'm a bit late to the game here since we just upgraded to 9.100, and this issue is very annoying. I can't find any info on it being fixed, where can I get the status on this?
Posted on 08-31-2017 10:12 AM
@alexjdale Stlil not fixed as of 9.100... Use to work in 9.97.
It's a bit of work, but I go into the machine record >> History >> policies >> Show. Line breaks will work here...
Posted on 08-31-2017 10:14 AM
Thanks, I wanted to make sure I wasn't missing something. We skipped 9.98 and 9.99 so this was new to me.
Posted on 02-08-2018 06:50 AM
In version 10.1, this is still an issue.
Posted on 02-08-2018 07:13 AM
Having the same problem on 10.1.1
Posted on 02-08-2018 06:39 PM
A green initiative had me cursing this issue last week when I had to create a script that would look for installed printers that offered Duplex, but where Duplex was off by default. I was somewhat pleased with the script. It output what I expected:
<PrinterName> <None>
<PrinterName> <DuplexNoTumble>
<Printername> <DuplexTumble>
My upside up smiley turned into an upside down smiley once I uploaded it to Jamf Pro 9.101.4 and found the EA that read the output of my script spit out...you guessed it...a single line, which was a PITA to work with.
<PrinterName> <None> <PrinterName> <DuplexNoTumble> <Printername> <DuplexTumble>
I really hope to see this issue resolved one day. I mean, heck, we can get a Tesla into space. Why can't we get line breaks in an EA output?
Posted on 02-08-2018 09:47 PM
FWIW, from another thread...
Posted on 06-12-2019 10:14 AM
This appears to have returned again at the last update, anyone have a fix ?
Posted on 10-07-2019 07:51 AM
It's still an issue as of 10.15.1.
Here's the FR for it: https://www.jamf.com/jamf-nation/feature-requests/6993/correctly-display-line-breaks-in-policy-logs
Posted on 10-07-2019 09:25 AM
@luke.reagor We are seeing this PI resolved under Jamf Pro 10.15.1. Output from script execution via policy includes line breaks, as expected.