suggested option for copydir: log= as an alternative to tee= #190
Replies: 10 comments 3 replies
-
Great idea! |
Beta Was this translation helpful? Give feedback.
-
I don't think this is in 11.6? (nudge) |
Beta Was this translation helpful? Give feedback.
-
No, it's not. Thanks for the nudge. Next release for sure. |
Beta Was this translation helpful? Give feedback.
-
Looking at this. Should the args be:
|
Beta Was this translation helpful? Give feedback.
-
Thanks. tee time has passed. |
Beta Was this translation helpful? Give feedback.
-
stdout and stderr are supported in v11.7 |
Beta Was this translation helpful? Give feedback.
-
I'm trying this out. My log includes this:
and then this:
So, are those two files supposed to go into the image, as the first chunk implies, or into the host, as the second chunk implies? |
Beta Was this translation helpful? Give feedback.
-
The intention is that stdout and stderr are written into the IMG, just as /etc/sdm/history is, making the IMG more self-documenting The second example (keys/values found) is printed by a generic function that only reports what is found in the plugin invocation. There are a couple of options here:
Your thoughts? |
Beta Was this translation helpful? Give feedback.
-
It was for sure my problem that I was trying to put the copydir stdout and stderr to ~/Downloads in the image, which didn't yet exist. I was able to place them at /home/pi. ... but I would still like to push for some option that would let me place them on the host. |
Beta Was this translation helpful? Give feedback.
-
As you wish... After further consideration, I've removed the This means that these files will likely always be written on the host, unless you manually force it into the IMG. |
Beta Was this translation helpful? Give feedback.
-
My experience when using rsync is that, if I use it at all, I use it for LOTS of files. With the standard -a flag, there's no detailed listing of what was copied. So, I often add the -v switch to print a line in the output for each of the transferred files. Thus, lots of output. Perhaps TOO much output.
When using copydir, I would like the option to have the rsync detail go only to the separate log. IOW, instead of "tee", where the detail goes both to the sdm logs and a separate log, I would prefer a "log=" option where the detail went only to the separate log.
At least to me, that would be a more useful or common option than tee. Really, with -a there's little or no regular output, so why bother to tee it anywhere? And with voluminous output, why confuse the sdm logs?
Or, to cut it even finer: in the proposed log option, have stderr go to _both_the sdm and separate logs, while stdout goes only to the separate log.
Beta Was this translation helpful? Give feedback.
All reactions