in reply to Re: PDF output to temp file
in thread PDF output to temp file
`evince bill.pdf >> /home/administrator/temp_1`;Using backticks here doesn't make sense, because due to the redirection, no output would be returned anyway. A better solution would be either
orsystem('evince bill.pdf >> /home/administrator/temp_1');
Another alternative to consider is IPC::Run. This would spawn the command without the need of an auxiliary shell process.my $errmsg=`evince bill.pdf 2>&1 >> /home/administrator/temp_1`;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: PDF output to temp file
by kcott (Archbishop) on Mar 22, 2012 at 11:16 UTC | |
by rovf (Priest) on Mar 22, 2012 at 14:23 UTC | |
by kcott (Archbishop) on Mar 22, 2012 at 22:17 UTC |