Return errors to Casper Remote from scripts

Not applicable

How do you return an error to Casper Remote from a (php) script? I'm trying different exit codes
but none seem to work. I can echo out error messages that are visible from the "View Log" but I
want a visual que under the "Error Occurred" portion. Perhaps it's an environment variable I need
to set? Thanks
-Jim

1 REPLY 1

Not applicable

So it looks like if you echo the word "error" from a script Casper Remote will detect this as an
error. That works, although it seems Casper could receive false positives using this logic.

Come to think of it this explains some Casper Remote errors I was seeing with an rsync script I was
working on. I had an option to show every file rsync was transferring. I bet when it transferred
a file like "error.log" and printed that to stdout Casper Remote thought an error occurred.

Perhaps I'm doing this wrong?

I'm not sure if the JAMF guys monitor this list but it would be nice to have a feature to trigger
the error in Casper Remote via an exit code or setting a custom environment variable. -Jim