remote-process

How can I kill a remote process for my app?

浪子不回头ぞ 提交于 2020-06-25 05:59:09
问题 Our app uses this method to kill remote process; but can any other plan can be used? I need this because getRunningAppProcesses() may not work. public void killChildProcess() { ActivityManager actvityManager = (ActivityManager)this.getSystemService( Context.ACTIVITY_SERVICE ); List<RunningAppProcessInfo> procInfos = actvityManager.getRunningAppProcesses(); for(RunningAppProcessInfo procInfo : procInfos) { if (procInfo.processName != null && procInfo.processName.equals("package:remote")) {

Script to Open a batch file on a remote computer

别等时光非礼了梦想. 提交于 2019-12-11 21:01:18
问题 I currently manually open a Remote Desktop and run a .bat file by double clicking it. I have found the following code on this site or maybe elsewhere that should allow me to automate this. This code works when I try to open Notepad or calc on the remote computer, but it wont run my .bat file. I get "process could not be started due to error 8". I checked and error 8 means "unknown failure". PSEXEC is not an option for me. Any help would be appreciated. Thanks. Const ForWriting = 2 Const

Combining local processes with remote processes in Julia

拈花ヽ惹草 提交于 2019-12-10 16:14:40
问题 I'm trying to use remote processes in conjuntion with local processes, but when I do I get the following output julia> addprocs(["user@host"], tunnel=true, dir="~/julia-79599ada44/bin/", sshflags=`-p 6969`) id: cannot find name for group ID 350 1-element Array{Any,1}: 2 julia> addprocs(23) fatal error on 2: ERROR: connect: host is unreachable (EHOSTUNREACH) in wait at ./task.jl:284 in wait at ./task.jl:194 in stream_wait at stream.jl:263 in wait_connected at stream.jl:301 in Worker at multi

Is it possibile to remotely process an SSAS cube throgh script?

独自空忆成欢 提交于 2019-12-08 01:01:26
问题 I have an SQL Server Analysis Service ( SSAS ) cube (developed with BIDS 2012 ) and I would like to give the opportunity to the users (that use cube through PowerPivot ) to process the cube in their local machines. I found some material on how to make a scheduled job on the server through Powershell or SQL Agent or SSIS but no material on remotely process the cube. Any advice? 回答1: There are several possibilities to trigger a cube processing. The low level method is issuing an XMLA statement

Wait for a remote process to finish in .net

二次信任 提交于 2019-12-06 12:14:46
问题 We all know and love Process.WaitForExit(). Given a pid of a process on a remote machine (created by WMI/psexec), how do I wait for it to end? 回答1: Process.GetProcessById(processId, machineName).WaitForExit(); 回答2: For me Process.GetProcessByID() just didn't work (it claimed it couldn't connect to the machine). This worked: public static bool WaitForProcess(int pid, string machine, TimeSpan timeout) { // busy wait DateTime start = DateTime.Now; while (IsAlive(pid, machine)) { if (start.Add

Is it possibile to remotely process an SSAS cube throgh script?

此生再无相见时 提交于 2019-12-06 05:53:27
I have an SQL Server Analysis Service ( SSAS ) cube (developed with BIDS 2012 ) and I would like to give the opportunity to the users (that use cube through PowerPivot ) to process the cube in their local machines. I found some material on how to make a scheduled job on the server through Powershell or SQL Agent or SSIS but no material on remotely process the cube. Any advice? There are several possibilities to trigger a cube processing. The low level method is issuing an XMLA statement to the database containing the cube. To see how this looks like, open SQL Server Management Studio, connect

Wait for a remote process to finish in .net

◇◆丶佛笑我妖孽 提交于 2019-12-04 19:47:54
We all know and love Process.WaitForExit(). Given a pid of a process on a remote machine (created by WMI/psexec), how do I wait for it to end? Kent Boogaart Process.GetProcessById(processId, machineName).WaitForExit(); For me Process.GetProcessByID() just didn't work (it claimed it couldn't connect to the machine). This worked: public static bool WaitForProcess(int pid, string machine, TimeSpan timeout) { // busy wait DateTime start = DateTime.Now; while (IsAlive(pid, machine)) { if (start.Add(timeout).CompareTo(DateTime.Now) <= 0) return false; Thread.Sleep(1000); } return true; } public

Starting remote processes in a Windows network

心不动则不痛 提交于 2019-11-30 20:36:06
I have several slave machines and a master machine which together run a distributed application. Processes on each slave machine have to have a GUI and network access (I think it would be called an interactive process then). For ease of use it would be nice if the master machine could start/stop the processes on those slave machines. My first idea was to use WMI and the Win32_Process class to start a remote process but upon further investigation it was reveiled that processes started this way are non-interactive and isolated, and thus cannot have any GUI. A note says that one can use Win32

Starting remote processes in a Windows network

六眼飞鱼酱① 提交于 2019-11-30 04:31:47
问题 I have several slave machines and a master machine which together run a distributed application. Processes on each slave machine have to have a GUI and network access (I think it would be called an interactive process then). For ease of use it would be nice if the master machine could start/stop the processes on those slave machines. My first idea was to use WMI and the Win32_Process class to start a remote process but upon further investigation it was reveiled that processes started this way