system

How do you set the default counters running when you start perfmon?

When you start perfmon*, it loads running 3 counters: Memory "Pages/sec", Physical Disk "Disk Queue length" and Processor "% Processor Time". How can I change that to be counters I care about? *To start perfmon, either type "perfmon" at a command prompt or under "Administrative Tools" select "Performance" ...

Find System Hard Disk Drive from Python?

I am working on a software installer for my current application. It needs to be installed to the System HDD. How owuld I detect the system drive and return the letter from Python? Would the win32 extensions be useful? How about the os module pre packaged with Python? ...

run an infinite loop for a while in c

Hello everybody. I want to run an infinite loop for a while. Basically, i want to have something like this //do something while(1){ //do some work } //do some other thing but i want the running time of the loop to be fixed, example, the loop could be running for 5 seconds. Do somebody have an idea? ...

Correct way to find out if a service is running as the SYSTEM user

Hi All. What is the correct way to find out if a process is running as the SYSTEM user. I'm looking for a win32 C API to check for the system user. We used to check if the username was "SYSTEM", but since Windows Server 2008 R2 the SYSTEM user appears to be localised. I.e SYSTEEM on a Dutch system. I cant find much information about...

Block potentially malicious R calls

Let's presuppose that you have R running with root/admin privileges. What R calls do you consider harmful, apart from system() and file.*()? This is a platform-specific question, I'm running Linux, so I'm interested in Linux-specific security leaks. I will understand if you block discussions about R, since this post can easily emerge in...

Python exit code in SciTE -1073741819.

A small piece of python code breaks/exits with -1073741819 within SciTE. Is there a way to attach a system sound or anything to alert me on exit. So far, its a silent break. ...

how to test if PHP system() function is allowed? and not turned off for security reasons

Hi! I would like to know how to test if system() or exec() is allowed on a server. I keep getting this error "Warning: exec() has been disabled for security reasons in ..." I understand that the safe_mode function is depreciated in the php version my provider runs (5.3.3) so i cant use a get_ini('safe_mode') check. What else to do? I...

Android: Signing my application with system key

I hear that to access permission like: - READ_FRAME_BUFFER The app needs to be signed with system key. If I understand correctly, that means the manufacturer sign the .apk file. Question: - Is it required that the manufacturer signed .apk to be shipped with a system image? or can it still be downloaded in the market place? - In real ...

Can use PHP to reboot linux server or restart dhcp?

i have try some command like system(reboot) exec(reboot) and system("/ect/init.d/networking restart"); but not happen something how can i do? ...

How can I make fork in Perl in different scripts?

Hi everybody I have a process in Perl that creates another one with the system command, I leave it on memory and I pass some variables like this: my $var1 = "Hello"; my $var1 = "World"; system "./another_process.pl $var1 $var2 But the system command only returns the result, I need to get the PID. I want to make something like for...

JMS between Enterprise applications

Hi We have a project where we want to link 2 enterprise systems together using JMS. In a nutshell, system 1 sends a message to the queue. Systems2 picks up that message, does a whole load of processing in the background for about 30mintues and then sends a message back to the queue for System1 to pick up. Can we get away with 1 queue o...

In what language was developed Adobe CS

I want to know this, I believe is C++ & Windows .. but what you know? ...

Is there a better way to shell out a command in C++ than system()?

I have a C++ windows service that sometimes crashes when I call the system() function to shell out a command. I've run the exact text of the command in the windows command-line, and it runs just fine, but for some reason it fails when system() is run. To make matters worse, I can't seem to get any information as to why system() is faili...