in reply to lpr command from perl not working.
$cmd ends up containing C:\ABCDEFGH.txt
You perhaps wanted @cmd?
#!usr/bin/perl -w use strict; my @cmd=qw(lpr -S SYSTEMX -P QGPL/SPYVIEW -o l C:\\ABCDEFGH.txt); system(@cmd) or die "cannot do this: $!";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: lpr command from perl not working.
by smanicka (Scribe) on Feb 11, 2009 at 21:30 UTC | |
by aaron_baugher (Curate) on Feb 11, 2009 at 21:44 UTC | |
by smanicka (Scribe) on Feb 11, 2009 at 21:49 UTC |