Scenario
I have a bunch of processes running on a server as part of various C# Applications.
Occasionally some of these crash for whatever reason (old legacy code that I don't currently have the time to replace or refactor).
Idea
I want to create a C# Service that continually checks to see if these processes are running, and if not, ...
Hello. Does anyone know how I can chage the window state of a form, from another thread? This is the code I'm using:
private void button4_Click(object sender, EventArgs e)
{
string pathe = label1.Text;
string name = Path.GetFileName(pathe);
pathe = pathe.Replace(name, "");
string run...
First off - hello, this is my first Stack Overflow question so I'll try my best to communicate properly.
The title of my question may be a bit ambiguous so let me expand upon it immediately:
I'm planning a project which involves taking data inputs from several "streaming" APIs, Twitter being one example. I've got a basic script coded u...
I was making a VB.NET application that can be used to edit, compile and run C programs. I used the Process.StartInfo.RedirectStandardOutput property. But I'm unable to redirect it to a textbox, since it is not of the string type.
How do I redirect the output coming from the cl.exe process to my textbox?
...
Is there any way I can have a thread branch off into its own independent process? I know there's the CreateProcess function but as far as I can tell, you can only run external applications with it. Is what I'm asking for at all possible?
...
Was wondering what kind of software and hardware component cant fail in a rmi program?
so for example in a client server model when a client invokes an object in the server?
thanks
...
I'm writing bash script, which does several thing.
In the beginning it starts several monitor scripts, each of them runs some other tools.
At the end of my main script, I would like to kill all things that spawned from my shell.
So, it might looks like this:
#!/bin/bash
some_monitor1.sh &
some_monitor2.sh &
some_monitor3.sh &
do_so...
If I run a command like this, using ruby's pty class, how do I kill it if I find a certain input string?
cmd = "appcfg.py update cdn"
PTY.spawn("#{cmd} 2>&1") do | input, output, pid |
begin
input.expect("Email:") do
output.write("#{credentials[:username]}\n")
end
input.expect("Password:") do
output.write("#{cr...
I want to pop a browser with a given url from within a windows service. Like so:
System.Diagnostics.Process.Start("http://www.venganza.org/");
Works fine when running in a console but not from within the service. No error messages, no exceptions, the Process.Start() command just seem to do nothing. It smells of some security issue, ma...
Hello there,
This code executes "handbrakecli" (a command line application) and places the output into a string:
Dim p As Process = New Process
p.StartInfo.FileName = "handbrakecli"
p.StartInfo.Arguments = "-i [source] -o [destination]"
p.StartInfo.UseShellExecute = False
p.StartInfo.RedirectStandardOutput = True
p.Start
Dim outpu...
Hi Guys,
I don't know whether it is been asked before or not.
But I want to silently install a msi to a server and also pass the credentials.
I can see the process.startinfo class to pass the server credential.
But I don't see an option to pass the destination server name.
THnx
...
I thought I knew how to set coding-system (or encoding): use process-coding-system-alist. Apparently, it's not working.
;; -*- coding: utf-8 -*-
(require 'cl)
(let
((process-coding-system-alist '(("cygwin/bin/bash" . (utf-8-dos . utf-8-unix)))))
(setq my-words (list "Lilo" "ಠ_ಠ" "_ಠ" "ಠ_" "ಠ" "Stitch")
my-cygwin-bash "C:/cygwin/b...
Scenario
I've written a WMI Wrapper that seems to be quite sufficient, however whenever I run the code to start a remote process on a server, I see the process name appear in the task manager but the process itself does not start like it should (as in, I don't see the command line log window of the process that prints out what it's doin...
I am unclear on the need and the usage of a pid-file and I wanted to know what is the correct usage of a pidfile and what are the best practices surrounding it.
...
This is a general question, but I'll explain my specific need at the moment:
I want to find the framework class that enables one to choose an image at design-time. I can find the editor that is used at run-time - its the Drawing.Design.ImageEditor. At design time, however, a different editor pops up which allows one to choose an image ...
Ok this is not duplicate of "http://stackoverflow.com/questions/2065592/alternative-to-process-start" because my question is something different here.
I need to run a process and wait till execution of process and get the output of console.
There is way to set RedirectStandardOutput and RedirectStandardError to true, however this does ...
As in the topic... or better - how to get this information from events when the top window changes?
...
My VB.NET WinForms program (parent) calls another VB.NET Console program (child) with Process.Start(). The child application runs quickly and I would like a status message returned to the parent. How can I send a string from the child to parent?
Is there some built-in way because of the parent-child relationship or must I use some oth...
Hi,
I am trying to call a process using System.Diagnostics.Process, send it a parameter, just for the sake of trying it out i am sending "-h" which should generate a list of help options and I need the output.
So far I have tried,
ProcessStartInfo startInfo = new ProcessStartInfo("C:\\agfl\\agfl.exe");
startInfo.Windo...
I have a Java application that creates a new thread to do some work. I can launch the new thread with no problems.
When the "main" program terminates, I want the thread I created to keep running - which it does...
But the problem is, when I run the main application from Eclipse or from Ant under Windows, control doesn't return unles...