How can I supress the stdout from the "lp" command which is being run through a perl-cgi script? If i run the command from the bash prompt (hardcoding filename rather than variable used below), it does as expected and redirects the standard output to /dev/null, *not* outputting the usual "request id is plothp-XX". When it is run from the perl-cgi script, I end up with "request id is plothp-XX" at the top of the webpage. How can i discard this output?
-------------------------------------------------------
this is the command I am using from within the perl script:
system ("lp -d plothp -o position=bottom-left -o PageSize=w1728h2160 $linuxPath 1>/dev/null");
my HTTP header is:
print "Content-type: text/html","\n\n";
--------------------------------------------------------
-------------------------------------------------------
this is the command I am using from within the perl script:
system ("lp -d plothp -o position=bottom-left -o PageSize=w1728h2160 $linuxPath 1>/dev/null");
my HTTP header is:
print "Content-type: text/html","\n\n";
--------------------------------------------------------