Quantcast
Channel: Save only specific output to log file - Ask Ubuntu
Browsing latest articles
Browse All 2 View Live

Answer by chaos for Save only specific output to log file

When you call unison in your sync.sh script call it as follows: unison ... 2>&1 | grep -vE '^[\|/-]|^$' This will remove (-v) all line that match the regual expression: All line beginning with...

View Article



Save only specific output to log file

I'm using unison to synchronise data to a server, and I've recently created a cronjob for this. The cronjob is running at startup and saves the output to a log file. (additional info below). The...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images