in reply to SEQUENTIAL REBOOT ORDER WINDOW$
Perhaps I'm not totally understanding this 2>&1 part of my qx, can I read this output within the script?
This is a very standard command line syntax that redirects both the STDERR and STDOUT filehandles to the same output stream. This works on Unix and on Windows.
On Windows, you can open a pipe to an external program, just like in Unix:
Again, it would be helpful if you could "dumb down" the example to something that the Monks with Windows can run.#!/usr/bin/perl use strict; use warnings; open TASK, "tasklist 2>&1|" or die "cannot open pipe to tasklist"; while (<TASK>) { print; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: SEQUENTIAL REBOOT ORDER WINDOW$
by 3dbc (Monk) on Jan 26, 2018 at 15:14 UTC | |
by 3dbc (Monk) on Feb 07, 2018 at 21:28 UTC | |
by 3dbc (Monk) on Feb 08, 2018 at 21:40 UTC |