ジョブスプーラジョブからstdoutとstderrを分離する方法

ジョブスプーラジョブからstdoutとstderrを分離する方法

task-spoolerUbuntu 20.04に送信されたジョブに対して別々のstderr出力ファイルを取得しようとしています。

このコマンドはうまく動作します。

tsp -Lfetcher sh -c 'curl -v https://google.com'

-Eしかし、stderr / stdoutを分割するオプションに問題があります。マンページ)。

tsp -Lfetcher -E sh -c 'curl -v https://google.com'

/tmp/ts-out.VBjwOw.e私は単に別のファイル、つまりstderrを保持しているファイルと/tmp/ts-out.VBjwOwstdoutを保持しているファイルを取得したいと思います。ただし、コマンドを実行するとすぐにジョブが失敗し(出力ファイルは生成されず、Eレベルは-1に設定されます)、次の出力が表示されます/tmp/socket-ts.1000.error

-------------------Error
 Msg: Reading the size of the name
 errno 0, "Success"
date Sat Dec 26 13:17:41 2020
pid 20358
type CLIENT
-------------------Warning
 Msg: JobID 9 quit while running.
 errno 2, "No such file or directory"
date Sat Dec 26 13:17:41 2020
pid 18784
type SERVER
New_jobs
<... more details about jobs>

パッケージバージョンの詳細

$ tsp -V
Task Spooler v1.0 - a task queue system for the unix user.
Copyright (C) 2007-2016  Lluis Batlle i Rossell

$ dpkg -s task-spooler
Package: task-spooler
Status: install ok installed
Priority: optional
Section: misc
Installed-Size: 85
Maintainer: Ubuntu Developers <[email protected]>
Architecture: amd64
Version: 1.0-1
Depends: libc6 (>= 2.15)
Description: personal job scheduler
 Task spooler is a Unix batch system where the tasks spooled run one
 after the other. Each user in each system has his own job queue. The tasks are
 run in the correct context (that of enqueue) from any shell/process, and its
 output/results can be easily watched. It is very useful when you know that
 your commands depend on a lot of RAM, a lot of disk use, give a lot of
 output, or for whatever reason it's better not to run them at the same time.
Original-Maintainer: Alexander Inyukhin <[email protected]>
Homepage: http://viric.name/soft/ts/

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.1 LTS"

ベストアンサー1

おすすめ記事