执行多个q进程

Executing multiple q process

我有一个关于通过单个 PowerShell 脚本在 Windows Powershell 中执行多个 q 进程的问题。

当我之前在 Linux 框中访问 kdb+/q 时,我创建了一个 bash 脚本,它可以使用 'nohup' 函数启动多个 q 进程。

例如https://groups.google.com/forum/#!msg/personal-kdbplus/3pDLV-Waahc/b0f9oh68AgAJ

鉴于我现在只能在 Windows Powershell 中访问 kdb+/q,我想看看是否有 easy/simple 方法可以实现与 运行ning 相同的结果 [= Linux 环境中的 28=] 脚本,其中包含多个 nohup q 脚本 这样我就可以一次性执行和 运行 一组 q 脚本,在背景.

有没有达到同样目的的pointer/script?

有一种使用 Windows Powershell 的简单方法,可以在 Linux 环境中实现与 运行 bash 脚本相同的结果。

Start-Process 将启动一个进程并继续执行 Powershell 脚本。

我的一个同事写了这个脚本,例如:

https://github.com/jonathonmcmurray/TorQ-Coinbase/blob/master/start_coinbase.ps1

最相关的行是第 66 行:

Start-Process "q.exe" $path -RedirectStandardOutput logs/torq$procname.txt

是什么启动了进程,其中:

  • $path是要加载的脚本路径和参数
  • -RedirectStandardOutput 等同于 linux 中的 >,允许记录到文件而不是控制台