我有一个运行ssh命令的工具,这样我就可以通过反向ssh连接到linux pc。当我想要更新用.Net Core 2.1编写的工具时,更新程序会停止工具的进程并更新文件。但是通过停止该工具,之前使用Process.Start()启动的ssh进程也将关闭,因为ssh进程是该工具的一个子进程。 有没有办法从我的工具中“断绝”子ssh进程,这样我就不会在更新程序运行时断开连接? 运行Ubuntu... C#: case UssGatewayFunction.NPIConnectSSH:
Log.Information("Connect to MyCompany via ssh
我试图在远程Linux服务器上运行一系列测试,我正在通过ssh连接到该服务器。
我不想在运行-> nohup(?)期间继续登录ssh会话。
我不想继续检查一次运行是否已经完成,-> for (?)
由于许可证问题,我只能在一次->顺序中运行一个测试过程。
我想在测试集正在处理时继续工作,->后台
以下是我尝试过的:
#!/usr/bin/env bash
# Assembling a list of commands to be executed sequentially
TESTRUNS="";
for i in `ls ../
我正试图设置一个新工作,但由于某种原因,它在开始后立即停止。
我的价格是6.5美分
这是我的档案:
/ect/init/test-daemon.conf
start on startup
stop on shutdown
respawn
script
sudo -u root php -f /usr/share/test_daemon.php
end script
/usr/share/test-daemon.php
<?php
// The worker will execute every X seconds:
$seconds = 2;
//
我正试图用nohup在mac上创建进程。进程被创建,但它在创建后立即终止。该进程具有命令/usr/bin/wget 。这是来自/var/log/system.log的错误。
(0x7fed9c80a940.anonymous.nohup[23454]): Bug: 12E55: launchd + 67394 [7DCC9489-2DF5-3807-83FA-EF5666EE8078]: 0x0
(0x7fed9c80a940.anonymous.nohup[23454]): Switching sessions is not allowed in the system Mach bootst