exec with "&" sends PID to stdout
Closed / Works For Me231726ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2001-02-09 15:08:27
We have TCL 8.0 on NT and Irix. Both versions act the same ... set sTempVar [exec $sCommand &] what happens, is that the ProcessID (PID) is displayed on stdout. We have tried many ways to capture the output so that it does NOT go to stdout, but we cannot stop it. This does not happen with our previous versions, 7.4 and 7.6. Any suggestions? Thanks
dkf Ticket [231726ffff]: 1 change
[History diff]2001-02-09 22:32:14
hobbsplain2001-03-28 08:54:10
Logged In: YES
user_id=72656
Are these self-compiled versions? I have never heard this,
and cannot repeat it:
gimlet [~/cvs/tcl/tcl8.4/unix/linux] 351 > tclsh8.0
% set var [exec echo blah &]
1756
% blah
% set var
1756
% info patch
8.0.5
The last thing you might try is
catch {exec $sCommand &} sTempVar
dgp Ticket [231726ffff]: 4 changes
[History diff]2001-03-28 23:46:44
Log in (anonymous is fine) to add a comment.