AT the moment, the site I look over sends an activation email to new members which have a link they must click to activate their account. While this seems like a good idea, it has many faults such as occasionally the email lands in their spam/junk folder and its yet another step the user has to do.
I was try to make it easier for users ...
What I have: the login/password for a UNIX user (alice).
Who I am: some other UNIX user (bob).
What I need to do: start a process programmatically (foo) as the other user (alice).
What the end result should be: the process is running and displays alice as the owner if a "ps" is done. For purposes of privileges, acts as if alice starte...
Windows 7, Vista, Server 2008, UAC is activated
Program must be stated with admin rights to make some installation actions. After that I want my program to continue work with non-admin rights.
How can I restart it with not administrative rights?
P.S.
My program reinstall itself. I don't want distribute any additional programs for ...
Hi,
I have a pre-built .NET Console application EXE that I am launching from separate C# code using the Process class. If the application throws an unhandled exception, a window pops up (the one that says " has encountered a problem and needs to close..." and has "Debug", "Send Error Report" and "Don't Send" buttons).
If this happen...
I already handled to start another VM in Java.
See ProcessBuilder - Start another process / JVM - HowTo?
For some reason, I can't manage to do the same in Scala.
Here's my code
object NewProcTest {
def main(args :Array[String]) {
println("Main")
// val clazz = classOf[O3]
val clazz = O4.getClass
Proc.spawn(clazz, true...
This question seems like it's probably a duplicate, but I was unable to find one. If I missed a previous question, apologies.
In Java, where I have most of my experience, if your main() forks a thread and immediately returns the process continues to run until all (non-daemon) threads in the process have stopped.
In C++, this appears no...
I need to query the peak memory usage by a running process from a C++ code. I looked at GetProcessmemoryInfo() function but it does not seem to give the information about peak memory usage by a process. Is there any function that does that and is it exported by kernel32.dll.
...
I'm looking for a method for storing the process memory, and restore it later at certain conditions.
...
Actually I've read questions about it... It seems a big challenge!
So, let's analyse: The application is a distributed one, but many processes are stateless (request their state to a centralized server). Processes uses network conn...
Hello,
I am doing real time programming in C++, under Linux.
I have two process, let me say A and B. A process is being started periodically, every 5ms. B process is being started every 10ms. The process A is doing some change of data. The process B is reading that data and displays it.
I am confused about how to run periodically pro...
We want to monitor some processes on windows machine. If process is down for 30 minutes, an alarm will be raised. Is it possible/or necessary to monitor a process downtime precisely, say, a process is down EXACTLY for 30 minutes, then an alarm will be raised? Normally, we can check it every 1 minute, but technically, most of the time, yo...
I'm reading up on concurrency. I've got a bit over my head with terms that have confusingly similar definitions. Namely:
Processes
Threads
"Green threads"
Protothreads
Fibers
Coroutines
"Goroutines" in the Go language
My impression is that the distinctions rest on (1) whether truly parallel or multiplexed; (2) whether managed at th...
I doubt this is even possible. So your app is running and user decides to End Process via Task Manager. Is there a method/action to save data during process.kill? I doubt there is but I had to ask.
Also, if a user shuts down/restarts PC (as in windows update/manual restart), what action would the app execute? Window_Unloaded? On this s...
Hi all
I have parent process that opens child process . I need to perform some functionality only when the parent process is no more running.
What is the best way to know that the parent process is not running ? Because it can be terminated violently then I don't want to make some functionality that will send signal to my child proce...
I am interested in creating a routine that would query the currently running cache processes and then write this information to a file. How could this be done in Cache 2008.2?
...
Hello all,
Before I get into to my question,let me explain what I am exactly doing.I have a main Process say ProcessA,I have hooked ProcessA and also injected dll(say myDll.dll) into the process space of ProcessA.Now at one point ProcessA kicks on another process which is ProcessB.Both the process A and B are in totally diffe...
Hi,
I thought I have URL routing under control as it works well on one website but found out it is not working fine on another. Both websites run from same server, same IIS 6.0, same asp_isapi.dll.
SETUP 1: This one works well:
routes.MapPageRoute("Article SEO",
"sid/{sid}",
...
Hi All,
I have service that runs as system, i want to spawn new process in some user TS session with the user privileges.
I'm calling LogonUser, LoadUserProfile, CreateEnvironmentBlock, CreateProcessAsUser and spwan the process in the user TS session.
The process (cmd.exe) run in the user TS session, but when i'm trying to run GUI app...
I have a python program that is running as daemon on Linux
I need some how send this program a signal from another python program
What should I do in both this programs ?
...
Hi,
I need to write a FILE to STDIN. This FILE going to be accessed by another EXE that goig to write the STDIN stream in a microcontroller.
Could you give me a help how to write the file to STDIN using Delphi 2010?
Thanks very much!
Abraão
...
I want to determine the absolute path of files used by a known process by reading the command line. Currently, the process is started with relative paths in the command line that point to various files such as config files. The problem is that if the paths are not relative to the folder containing the executable, I have no way of convert...