2015.09.27 12:53 AM
2015.09.27 02:11 AM
Is there a way to ignore the exit code (and therefore 'os error) and get the stdout+stderr of a process on Windows? On Linux the following works:--
system"(program 2>&1; true)"
You received this message because you are subscribed to the Google Groups "Kdb+ Personal Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to personal-kdbplus+unsubscribe@googlegroups.com.
To post to this group, send email to personal-kdbplus@googlegroups.com.
Visit this group at http://groups.google.com/group/personal-kdbplus.
For more options, visit https://groups.google.com/d/optout.
2015.09.27 09:59 AM
maybe set errorlevel=0jack@TP C:\Users\jack> qKDB+ 3.1 2014.08.22 Copyright (C) 1993-2014 Kx Systemsw32/ 4()core 4095MB jack tp 192.168.2.12 NONEXPIREq)\dir ...File Not Found'osq)\dir ... & set errorlevel=0Volume in drive C is Windows7_OSVolume Serial Number is 545A-BF90Directory of C:\Users\jack\trade\...File Not Foundq)
2015.09.27 10:32 AM
From: P=C3=A9ter Gy=C3=B6r=C3=B6k Sent: Sunday, September 27, 2015 00:53 To: Kdb+ Personal Developers Reply To: personal-kdbplus@googlegroups.com Subject: [personal kdb+] Ignoring exit code from "system" on Windows |
2015.09.28 12:58 PM
Can't you just error trap in kdb?@[system;cmd;{}]
From: Péter GyörökSent: Sunday, September 27, 2015 00:53To: Kdb+ Personal DevelopersReply To: personal...@googlegroups.com Subject: [personal kdb+] Ignoring exit code from "system" on WindowsIs there a way to ignore the exit code (and therefore 'os error) and get the stdout+stderr of a process on Windows? On Linux the following works:--
system"(program 2>&1; true)"
You received this message because you are subscribed to the Google Groups "Kdb+ Personal Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to personal-kdbpl...@googlegroups.com.
To post to this group, send email to personal...@googlegroups.com.
Visit this group at http://groups.google.com/group/personal-kdbplus.
For more options, visit https://groups.google.com/d/optout.
2015.10.02 06:38 AM
2015.10.02 10:53 PM
This works on Windows:q)system"program 2>&1 || echo."
2015.10.03 06:24 AM
2015.10.05 04:43 AM
EMEA
Tel: +44 (0)28 3025 2242
AMERICAS
Tel: +1 (212) 447 6700
APAC
Tel: +61 (0)2 9236 5700
KX. All Rights Reserved.
KX and kdb+ are registered trademarks of KX Systems, Inc., a subsidiary of FD Technologies plc.