My goal is to safely open a web page in a users default browser. The URL for this web page is considered "untrusted" (think of it as a link in a document opened with this software, but the document could be from anywhere and the links in it could be malicious)
I want to avoid someone passing "C:\Windows\malicious_code.exe" off as a URL
...
Typically the CPU runs for a while without stopping, then a system call is made to read from a file or write to a file. When the system call completes, the CPU computes again until it needs more data or has to write more data, and so on.
Some processes spend most of their time computing, while others spend most of their time waiting for...
I've been working on a website that get all its data through SOAP. Some pages may have three or four calls to the soap server and some of the calls can sometimes take quite long (30-60 seconds).
What I've noticed happening is if I interrupt the request during one of the long 30 second calls (stop the browser loading) and issue another ...
I am having an issue with some process wrapping, and it's only occurring in Windows XP. This code works perfectly in Windows 7. I'm really stumped as to why the streams are empty in XP. I've also tried using the String[] version of Process.Exec() and it made no difference.
I am using the following class to read from the process' STDO...
I have this in a VB.NET console application:
Dim p As ProcessStartInfo
p = New ProcessStartInfo(Environment.CurrentDirectory & "\bin\javac.exe",ClassName & ".java")
Dim ps As Process = Process.Start(p)
This does run the java compiler on the file, but it does so in a new window. I want the output from javac to appear in the same conso...
Is there a way to start a process in Java? in .Net this is done with for example:
system.diagnostics.process.start("processname");
Is there an equivalent in Java so I can then let the user find the application and then it would work for any OS.
Thanks
How does that work if I provide a file?
...
Hello everyone,
I found this source code which is an application that will return a command prompt result with the given command. However, the string of the result is not being correctly outputed sometimes. You guys can try for yourself: Download Here
In the application, there is a "while" loop going on which looks at the StandardOutpu...
Hi all,
like many others, I want to kill my Android application on "exit" button. Really kill, not just move to background and stop all active code. (I know very well that Android does not like it.)
I found Process.killProcess(Process.myPid()); and System.exit(0) which both work fine (I have no problem with activity stack, the "exit" bu...
I want an app or python package that can
1.Dynamicly add python script to the background
2.Execute a specificed time
3.Check is this python script is running,
4.Also i can kill the current execute script.
Is already has such package,so i needn't care about cron,at,check processing is running etc.
Any advice is appreciated
Cron on...
I'm using Microsoft UI Automation to test an application, but I'm using a batch file to launch that application.
When I run process.WaitForIdle(100), it fails because the batch file has no graphical interface. How can I react to the application being launched and find the process spawned? (I may already have a similar window open so I c...
Is there any way to get the Form from its Processhandle ?
Some thing like this.
Form form = (Form)Form.FromHandle(_process.MainWindowHandle);
But this is not working.
Thanks in advance
...
I'm having an issue where my main form isn't updating even though I see the event fire off. Let me explain the situation and share some of my code which I'm sure will be horrible since I'm an amateur.
I created a class to take in the settings for running a process in the background. I add some custom events in that class so I could us...
I am trying to use the ps -o command to get just specific info about processes matching a certain name. However, I am having some issues on this, when I try to use this even to just get all processes, like so, it just returns a subset of what a normal ps -ef would return (it doesn't return nearly the same number of results so its not ret...
Standard streams are associated with a program. So, suppose there
is a program already running in some way (I don't care how or in
what way). The goal is to create pipes to the STDIN of the
program from different processes (or programs) that run either
locally or remotely and stream data into it asynchronously.
Available information is ...
I am writing a program that needs to run a set of executables and find their execution times.
My first approach was just to run a process, start a timer and see the difference between the start time and the moment when process returns exit value.
Unfortunately, this program will not run on the dedicated machine so many other processes ...
Hello Everyone!
I'm trying to write a program that automatically sets process priorities based on a configuration file (basically path - priority pairs).
I thought the best solution would be a kernel module that replaces the execve() system call. Too bad, the system call table isn't exported in kernel versions > 2.6.0, so it's not poss...
I am writing something similar to the http://ideone.com/. Currently I am running user processes with CreateProcess call. I kill the process if it runs longer then specified amount of time but I don't know how to deny read/write filesystem rights / creating process rights etc. to the created process. The given executable can be literally ...
Hey, I am trying to get a service to start my program but it isn't showing the GUI. The process starts but nothing is shown. I have tried enabling 'Allow service to interact with desktop' but that still isn't working.
My program is a computer locking device to stop unauthorised users from accessing the computer. I am running windows 7 wi...
I've been playing with the subprocess module to iteratively send
each line in an input file to a process created by the following command.
ssh -t -A $host 'remote_command'
The remote_command expects a line in its STDIN, does some processing on the
line and iterates the cycle until STDIN closes or reaches EOF.
To achieve this, what I'...
Hi, All,
I have a requirement to retrieve all modules of a 64bit process in a 32bit WOW process in Windows, EnumProcessModules would fail as described:
If this function is called from a 32-bit application running on WOW64, it can only enumerate the modules of a 32-bit process. If the process is a 64-bit process, this function fails ...