| bio | website | |
|---|---|---|
| location | ||
| age | ||
| visits | member for | 1 year |
| seen | Jun 12 at 15:45 | |
| stats | profile views | 1 |
|
Jun 8 |
comment |
Filter launchctl standard err/out to add timestamp to log messages Also, instead of using the named pipe, the LaunchDaemon plist program can run complex shell commands using bash -c [shell command]. This command can contain redirection, piping, and everything. Consequently, I was able to pipe the first program's output through a script that added time stamps. (Answer found in this other question.) |
|
Jun 7 |
comment |
Filter launchctl standard err/out to add timestamp to log messages For future reference, it seems like this is possible using a named pipe, which can be created as a file-like object in the file system using the mkfifo mypipe command. Once created, read from it with eg. cat < path/to/mypipe, and write to it (try in another terminal window) with eg. echo 'Foo!' > path/to/mypipe. (NB. Auto-corrupt botched up my thank you in the previous comment. Sorry about that, patrix...) |
|
Jun 7 |
comment |
Filter launchctl standard err/out to add timestamp to log messages Yeah, that's how I was doing it in the meantime. Thanks, matrix! Other than that, I was looking for a UNIX-y thing where you can write to a script as if to a file, but letting the script handle the input instead. |
|
Jun 3 |
awarded | Student |
|
Jun 3 |
revised |
Filter launchctl standard err/out to add timestamp to log messages edited tags |
|
Jun 3 |
asked | Filter launchctl standard err/out to add timestamp to log messages |