{"id":292,"date":"2016-03-20T01:07:09","date_gmt":"2016-03-20T00:07:09","guid":{"rendered":"http:\/\/104.198.79.120\/?p=292"},"modified":"2016-03-20T15:12:37","modified_gmt":"2016-03-20T14:12:37","slug":"how-to-hide-terminal-command-output-messages-under-ubuntu-debian-linux","status":"publish","type":"post","link":"https:\/\/wp.gaborhargitai.hu\/how-to-hide-terminal-command-output-messages-under-ubuntu-debian-linux\/","title":{"rendered":"How to hide terminal command output messages under ubuntu \/ debian linux"},"content":{"rendered":"
There are times when we do not want our scripts or programs to outputy any kind of message to the standard output – like for instance if we have multiple scripts in our crontabs. If you didn’t have your crontab configured in such a way that it automatically shoots you an email if something is shown on one of its outputs, but you indeed have at least some kind of a function implemented within your script to alert you in one for of another, than silencing the output is somewhat sensible.<\/p>\n
Either way, to employ a pseudo force silent mode run your scripts\/programs like this:<\/p>\n
Remember to only hide the output if you are definately sure<\/strong> thar you don’t need to see it!<\/p>\n","protected":false},"excerpt":{"rendered":" There are times when we do not want our scripts or programs to outputy any kind of message to the standard output – like for instance if we have multiple scripts in our crontabs. If you didn’t have your crontab configured in such a way that it automatically shoots you an email if something is […]<\/p>\n","protected":false},"author":1,"featured_media":293,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[8,6,7],"tags":[],"_links":{"self":[{"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/posts\/292"}],"collection":[{"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/comments?post=292"}],"version-history":[{"count":2,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/posts\/292\/revisions"}],"predecessor-version":[{"id":295,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/posts\/292\/revisions\/295"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/media\/293"}],"wp:attachment":[{"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/media?parent=292"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/categories?post=292"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/tags?post=292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}\/path\/to\/my_script.sh 2&>1<\/code><\/p>\n