Berkeley CSUA MOTD:Entry 53927
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/04/15 [General] UID:1000 Activity:popular
4/15    

2010/8/17-19 [Uncategorized] UID:53927 Activity:nil
8/17    I have a bunch of cron that I want to run but only want to
        output to stdout if there is any stderr (or if it returns $?)
        so that it'll be in email. Otherwise, I want to output nothing.
        Is there a program that does this already?
        \_ program >tempfile || cat tempfile; rm tempfile