process

Can python share info like .net remoting?

I known python can use pipe to communicate between two process of py. But, data and functions of this method are not clear. I like .net remoting better. So, can python realize that approach? ...

Wait till a process ends

I've an application which does Process.Start() to start another application 'ABC'. I want to wait till that application ends (process dies) and continue my execution. How can i do it? There may be multiple instances of the application 'ABC' running at the same time. Any insights? ...

Killing a process with taskkill /F returning code 0

Hi, I need to kill a windows process (java.exe). I'm currently using: taskkill.exe /F /IM java.exe I need to use the /F option since is a critical process,but in this way I get a return code 1 instead I need a return code 0 (returned when I don't use /F for killing other not critical processes) how could I fix this problem? Many tha...

Is bindService necessary for a local (same process) Service?

I have a Service singleton class with static methods that I call from the same process. I call startService when my Application starts. I also call bindService, but now I am wondering if that is really necessary. ...

Priority aging as a process scheduling strategy. What are the advantages and drawbacks?

I have been doing some research on priority scheduling algorithms, and although I find Priority Aging to be a very basic (and seemingly sound) strategy, I can barely find information about it. Could someone please let me know the issues and advantages of implementing an algorithm? Thanks! ...

How to set System.Diagnostics.ProcessStartInfo before your process starts

I want to set the ProcessStartInfo values for the running process... I am not starting an external process. For example, is there an attribute I can place on my Main method that tells Windows to start this executable with the following settings. I am trying to find a way to start my console hidden or minimized. Yes I can minimize it af...

Problem reading InputStream from Java Process (Runtime.getRuntime().exec() or ProcessBuilder)

Hi *, I'm trying to start a process externally with Java and can't read anything from its InputStream - dunno why! If I'm starting a process with commands like "ls", "ps" or "kill" everything works fine. I can start the process and get information either on the InputStream or the ErrorStream of the Process. If I try to use a command l...

windows xp process change listening port

Hi, I have a legacy client/server application where the listening and sending ports are taking dynamically. Is their any way in windows xp to change the listening port of a running application?? Thanks, Mahesh ...

Remote Process Execute Problem

Hi, My scenerio is connection to remote machine with C#.Net, and listing all processes with that remote computer. I can kill a process, or start a new process at remote. The problem is, when I execute a new process on remote, I can see the process on task manager, but it doesnt apeear on windows screen. Any idea why its not appearing on...

Windows Service running as LocalSystem but needs to start a process as the currently logged on user

I'm running a windows service (written using .NET) as the user - LocalSystem. From the service, I need to start a process but as the currently logged on user. If I user Process.Start(process_name), it runs with the privilege of the service by default - that's as LocalSystem. How do I impersonate the currently logged on user and run the ...

Executing a program as a thread and not as a process

Is there a way to execute another program, such as notepad, as a thread so it shares the same memory space as my program? So if my program ends, so will notepad and so that notepad won't show up in task manager, just my program? ...

How to set up a QA dept. ?

I am senior member of a small team (2 other programmers). We are all new to the company, and I have been setting up all of the dev infrastructure. So far, I have an excellent version control system (Git), an excellent issue tracking system (Redmine), and I am about to set up a build environment (Hudson). I am now looking into setting up ...

reading stack frame Instruction pointers in loop using Ptrace

Hello ALL, i am using ptrace() call to walk the Stack on Linux x86_64 a 64 bit m/c. my requirement was to Walk the stack of a Process(ABC) periodically. so i created a separate process which is child of Process(ABC). this Child Process should walk the Stack of its parent after every 1 sec, so both the process should run simultaneously. ...

Windows Update Check with vbscript

Hello, has someone a script/or can help me to check, is there a windows update for a server available? So i will get a mail when the yellow update icon is in the taskbar. My idea is: Send a mail, if the wuauclt.exe longer than 10 minutes in the taskbar. But i have no idea to make this. I found only this: Dim strComputer, strProcess...

Ruby background process communication

How can I communicate with a process using anonymous pipes in Ruby? The process in question is supposed to stay there and listen for commands from stdin. I'd also like to read it's output, which is separated by "\r\n". Using Open3 from the standard library: @stdin, @stdout, @stderr, @thr = Open3.popen3(cmd) The problem with this is ...

Attach .net app to another process

I have a .net Console application that uses a COM component to generate PDF. Basically it prints the input document as PDF and is configured as a printer in the Desktop. Now, this component is singleton by design and does not support multiple instances. My application works fine if this process is not already running. However, if an i...

c# : is it possible to hook arguments to an existing process. Example launching iexplore.exe and then making it to navigate to a website

the code to invoke Internet explorer is as follows System.Diagnostics.Process oProcess = new System.Diagnostics.Process(); oProcess.StartInfo.FileName = "C:\\Program Files\\Internet Explorer\\iexplore.exe"; oProcess.Start(); is it possible to assign a URL to this process once its started? ...

.NET assembly not creating as backgrouond process using System.Process

Hello, I am trying to launch background processes using System.Diagnostic.Process API . It launches every process e.g notepad.exe, all native processes and all windows form base processes. But this unable to launch pure managed GUI less assemblies. Task Manager not showing those assemblies listed in its list as seperate process. Niether...

How to figure out whether a Linux TTY is controlling a process group

So I have a tty (let's say /dev/tty5) and want to know whether it currently is a controlling tty of a process group or session, or whether it is currently unowned. POSIX has two API functions which suggest themselves here: tcgetpgrp() and tcgetsid(), both of which only work however if the caller has the tty as controlling tty -- which in...

How to get job handle if I have HANDLE to one of the windows of the job

My application tried to scrape IE8, here we somehow obtain HANDLE to Internet Explorer Window/UI. Now I want to get the job handle for IE8. One Idea is to - Determine first the process id using the IE Window HANDLE using GetWindowThreadProcessId() but after this I am stuck. There is new implementation in IE8, here every tab opened is a ...