cost 286 ms
使用 sudo 权限在后台运行带有 nohup 的 pg_dump - Running pg_dump with nohup in the background with sudo privileges

我想使用 pg_dump 转储一个相当大的数据库(1 TB)。 问题是通过 vpn,超时。 所以我想通过 nohup 运行它并且没有运气。 这是基本命令: 我尝试过的事情 1) 将 nohup 放在开头,& 放在最后 2) 将命令放入 bash 文件并尝试运行 bash 3) 各种排列组合 ...

忽略“nohup”警告不适用于 mysqldump - Ignore "nohup" warning not working for mysqldump

我知道有很多类似的问题,但不知何故我做对了。 运行此命令时,我的“dump.sql”产生了预期的结果 这是转储的第一行。sql 但是使用这个命令: 这是 dump.sql 的第一行: 导入转储文件时会导致错误。 如何? 据我了解,“2>”表示重定向错误。 如果我更改为此命令,则“dump.l ...

Jenkins 冻结,因为 npm 命令没有返回到终端 - Jenkins freezes as the npm command does not return to terminal

Jenkins 远程执行 shell 为 Linux 有以下命令: 但是,此命令不会返回终端,如下所示: 我可以把它放在背景中,如下所示: 但是,我需要帮助确定nohup npm run develop & command 是否成功。 此命令也不起作用。 根据建议,我尝试了以下方法: 我也 ...

使用 nohup 时是否可以刷新 tqdm output - Is it possible to flush tqdm output when using nohup

我使用 python tqdm package 来显示我的代码执行进度。 这是一个小样本,可以更好地解释我的用例 当我在没有 nohup 的情况下运行此代码时,它会按预期运行。 它刷新 tqdm 描述并只在终端上保留最后一个描述。 样本 output 但是,当我使用 nohup 运行相同的代码以在 ...

从 cmd 运行 python py 文件但得到 ImportError。 从 conda 提示符运行正在运行 - Running python py file from cmd but getting ImportError. Running from conda prompt is working

我正在尝试从 cmd 在 D 驱动器中运行一个 py 文件,以使其在后台运行。 使用的命令: 它在 nohup.out 文件中创建 ImportError 现在从 conda promt 运行命令,nohup 命令几乎没有变化 这按预期工作,但问题是如果我关闭 conda 提示,文件将停止执行。 注 ...

nohup bash myscript.sh > log.log 产生空文件,直到手动停止进程 - nohup bash myscript.sh > log.log yeilds empty file until the process is stopped manually

我有一个 python 文件,我使用提供一些参数的 .sh 文件运行该文件。 当我使用bash myscript.sh在终端上运行此文件时,它运行良好,在控制台上打印进度。 当我使用像nohup bash myscript.sh > log.log这样的 nohup 时,没有任何内容保存到 l ...

如何安全地终止 python 脚本,使其最终块执行 - How to terminate python script safely so that it's finally block executes

我已经在 nohup 中启动了一个 python 脚本。 该脚本包含一个 finally 块,如果发生任何异常或键盘中断,它将打印队列中的剩余项目以打印到日志文件中。 只要我在执行脚本的同一 shell 中,它就可以正常工作。 例如:以下步骤按我的预期工作。 但问题是,一旦我退出当前的 shell ...

`nohup node build/index.js &` 不在后台执行 - `nohup node build/index.js &` does not execute in the background

在GitLab CI 管道中,我运行nohup命令来启动NodeJS服务器。 我已经尝试了几个版本的命令。 没有一个版本完全在后台运行。 由于某些原因,它们总是在终端中运行。 这是我最近使用的命令: 我在最后尝试过使用和不使用 pipe。 该命令哪个版本在不挂终端的情况下在后台记录节点进程的outp ...

一旦我与服务器断开连接,“nohup python3 .. &”就会结束 - "nohup python3 .. &" ends once I disconnect from a server

这个命令 一旦我与服务器断开连接,就会结束。 也就是说,如果我在 10 秒后断开连接,然后再连接,则任务或作业将消失。 但是,如果我留在服务器上,它会根据需要继续工作,没有问题。 为什么? 即使在我断开连接后如何使其在后台工作? 这是一个 AWS Debian 服务器。 ...

如何在 Gitlab 作业的后台运行 gradle 应用程序(nohup 在 gitlab 中不起作用) - How can I run gradle apps in background in Gitlab job (nohup is not working in gitlab)

我想运行几个 gradle 应用程序,它们将作为后台进程运行大约 5 分钟(在调用 gradle 应用程序后将运行更多命令,然后工作将完成)。 他们使用 nohup 在我的 ubuntu 机器上执行得很好: 运行这些命令不需要按中断按钮或回车,因此我可以在后台连续运行多个 gradle 应用程序并 ...

如何在启动时运行 nohup,同时将 nohup.out 写入选定目录 - How to run nohup on boot while writing nohup.out to a selected directory

我将不得不运行一个将运行数月并生成大量日志的 nohup 命令,因此我想将 nohup.out 文件写入包含其余代码的目录。 我在每次启动时执行的简单脚本是: 如果我执行运行脚本的 crontab 作业,所有 nohup 日志仍会进入/var/log/syslog 。 如果我在使用 ec2 后 ...

Linux/Nohup/Qt:使用 nohup(在非 Qt 守护进程内)从系统命令启动外部 Qt 程序不起作用 - Linux/Nohup/Qt: starting an external Qt program from a system command with nohup (inside a non-Qt daemon) does not work

在一个名为tep2020gateway的 USB 守护进程中,我使用通用工具swupdate获得了一个函数swUPdating (正在更新我的应用程序: tep2020ihm )。 在该更新程序守护进程tep2020gateway内部: 首先我停止应用程序tep2020ihm 然后我尝试 ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM