in reply to Redirect output of the system() command
system( "cmd /C \"h2p\\wkhtmltopdf.exe", "http://perlmonks.org/?node_i +d=980995", "out.pdf", "2>nul\"" );
That would be 'bash -c' on Linux I think. This is non portable though, so backticks, which Athanasius already mentioned, are probably your best bet.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Redirect output of the system() command
by Gangabass (Vicar) on Jul 11, 2012 at 05:33 UTC | |
by Gangabass (Vicar) on Jul 11, 2012 at 08:21 UTC |