如何在后台运行猪脚本?

how to run pig script in background?

很多时候我不得不在服务器上 运行 多个 pig 脚本。我的大部分脚本大约需要 30 分钟才能完成。我不想等到一个脚本完成后再启动另一个脚本。那么,我可以在 grunt shell 中同时 运行 多个脚本吗?或在后台运行 运行 pig 脚本并启动另一个 pig 脚本(类似于 nohup)?

运行 在终端中执行以下命令,

nohup pig /home/mypigscript.pig &

mypigscript.pig 将有 pig 命令。 经过多次试验和错误后找到解决方案:)