I was looking for the best way to find the number of running processes with the same name via the command line in Linux. For example if I wanted to find the number of bash processes running and get "5". Currently I have a script that does a 'pidof ' and then does a count on the tokenized string. This works fine but I was wondering if the...
i use to send a data on two separate process but it fails. it works only under same process... this is concept.
//-----------------------------------------------------------------------------------
MainApps
//-----------------------------------------------------------------------------------
Type
PMyrec = ^TMyrec;
TMyrec = Recor...
Hi
How to refresh a page every 10 minutes using php background process?
When i login to my account i can check my messages ,on setting timeout function the page reloads every 10 minutes but i need the process to run in background ,
After me logging in,.. if i receive some message i must receive a popup called hai you have a message f...
Hello,
I would like to use this function in C#, but I need to get 2 types of processes.
Is it possible to do something like this:
process.getprocessesbyname("process1", "process2");
How can I get the instances of 2 processes with different names?
TY
...
Is there any way to start non-Java process from Java and then stop it? Or at least send some keyinput to it (e.g. alt+f4)?
E.g. I start java app, then javaapp start notepad, then javaapp send alt+f4 to notepad. Javaapp will run from Administrator account.
Question is only about Windows OS.
...
Thank you in advance for you ideas and input.
I would like to periodically check to see if a third party program is currently running on a user's system from my program. I am currently launching the program as follows in C#:
String plinkConString = ""; // my connection string
Process plink = Process.Start(utilityPath + ...
I want to do the following with C# and Microsoft Excel:
1 - The user chooses a file.
2 - Micorosft Excel is shown to edit that file.
3 - As soon as the user clicks Excel's "Save" button Microsoft Excel should close.The user shouldn't have to click on exit.
Any idea on #3 ?
Regards,
Sebastian
...
Hi,
I can see the background process using ps. But Is there a way to view the foreground process?. For example,
$nohup process1 &
then
ps -ef | grep "process1"
would display the process "process1" in execution.
But the above command wouldn't show a foreground process executed like,
$process2
Thanks in Advance.
...
Hi all,
I'm working with a BackgroundWorker Process from Windows .NET C# application.
From the async method I call many instance of cmd.exe Process (foreach), and read from StandardOutput, but at the 3-times cycle the ReadToEnd() method throw Timeout Exception.
Here the code:
StreamWriter sw = null;
DataTable dt2 = null;
StringBu...
I would like to be able to operate a scanner from my AIR application. Since there's no support for this natively, I'm trying to use the NativeProcess class to start a jar file that can run the scanner. The Java code is using the JTwain library to operate the scanner. The Java application runs fine by itself, and the AIR application can s...
HKEY_LOCAL_MACHINE, "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon", "Shell" returns the shell name, usually Explorer.exe. However, it does not contain the path, or identify a particular executable file.
Enumerating the Task List locates the task Explorer.exe.
But what if the user had ran another, unrelated task called Explorer...
Hi,
is there any way to set the process name of a shell script? This is needed for killing this script with the killall command.
Thanks for any hint.
...
I'm calling Process.Start, but it blocks the current thread.
pInfo = new ProcessStartInfo("C:\\Windows\\notepad.exe");
// Start process
mProcess = new Process();
mProcess.StartInfo = pInfo;
if (mProcess.Start() == false) {
Trace.TraceError("Unable to run process {0}.");
}
Even when the process is closed, the code doesn't respond ...
My function:
/*
--_--_--_--_--_--_--_--_--_--_--_--_--_--_--_--_--_--_--_--_--_--_--_--_
runPE(
dosheader ptr,
ntheader ptr,
sectionheader ptr,
ptr to exebuffer,
DWORD SizeOfImage(Alignment fixed))
_--_--_--_--_--_--_--_--_--_--_--_--_--_--_--_--_--_--_--_--_--_--_--_--
*/
int runPE2(IMAGE_DOS_HEADER* pDOS,IMAGE_NT_HEADERS * pNT...
I have developed a driver for Windows XP which is able to monitor the execution of processes.
A callback function receives the notifications using standard WDK API (PsSetCreateProcessNotifyRoutine).
The driver then decides if the process should be authorized or not; if not, it must block its execution/kill it.
What's the cleanest way t...
I am using pdf2swf tool to convert pdf to swf in my application, and using java to run this process via code and using jboss as my server on a linux os.
But i am getting following exception :
java.io.IOException: Cannot run
program "pdf2swf":
java.io.IOException: error=12, Cannot
allocate memory"
...
Hi all,
I want to get all of the controls in my current aspx page and see which ones are of a certain type and then add them to a collection.
I can accomplish this and have written some test code that will process everything in this.controls and the child controls of those. This seems to work ok but it ends up having to process the en...
I want to display a progress bar/wheel, when doing some process, for instance, on a button click I want the screen to freeze and show a progress wheel , till the pressed action for example saving data in database is completed.
Is it possible, please provide code if applicable.
...
Hi,
I'm trying to figure out, whether input bindings for CompositeProcesses and AtomicProcesses in OWL-S can be defined externally.
Example
The OWL-S CompositeProcess has the rdf:ID "CompositeProcess". The two OWL-S AtomicProcesses are identified by "AtomicProcess_1" and "AtomicProcess_2" respectively. Each OWL-S Process has one inpu...
When I set ini_set('memory_limit', '100M'); in an included script, does this apply to the complete request, in which this script is included?
...