Reese Knowledgebase

suppress output to STDOUT

View Kristian Reese's profile on LinkedIn


If you like this article, please +1 or Recommend via FB with the provided buttons above:

Article ID: 93
by: Reese K.
Posted: 20 Feb, 2013
Last updated: 20 Feb, 2013
Views: 789

One liner to suppress output to screen

Place the following syntax near the beginning of the perl program:

open (STDIN, "</dev/null"); open (STDOUT, ">/dev/null"); open (STDERR, ">&STDOUT");

This article was:   Helpful | Not Helpful
Prev   Next
VPS     VMware

RSS