<!doctype html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<div class="default-style">
<span style="color: #236fa1;"><strong>I have a program, segment included below, that partially works. The first 'runcommand' example works, but the 2nd doesn't?</strong></span>
</div>
<div class="default-style">
</div>
<div class="default-style">
<span style="color: #236fa1;"><strong>If I type the lp command line, it prints perfectly..</strong></span>
</div>
<div class="default-style">
</div>
<div class="default-style">
<div class="default-style">
if RunCommand('unix2dos', ['-n', '-f', '/mbs/mbs/file/cust.f','/mbs/mbs/file/cust.frm'],s) then
<br> writeln(s);
</div>
<div class="default-style">
if RunCommand('/bin/lp', ['-d', ' printer1','-o=raw' ,'/mbs/mbs/file/cust.frm'], s) then
<br> writeln(s);
</div>
<div class="default-style">
errormsg.text := 'We are done with runcommand now s= '+ s;
</div>
</div>
<div class="default-style">
</div>
<div class="default-style">
<span style="color: #236fa1;"><strong>Fedora 37, Lazarus 2.2.4 FPC 3.2.2 X64 Linux gtk2</strong></span>
</div>
<div class="io-ox-signature">
<p class="default-style"><span style="color: #000080;"><strong>John A. Ward, President</strong></span></p>
<p class="default-style"><span style="color: #000080;"><strong> </strong></span></p>
</div>
</body>
</html>