Questions tagged [system]

System may refer to a set of interdependent components; Low level infrastructure like the operating system (from a high language point of view) or an object or function for accessing the previous

The system tag is used for referring to the operating system, or functions thereof, when accessed from a higher-level language.

Many high-level languages offer access to the features of the system by an object or function called system itself. Questions regarding these objects might as well be tagged with this tag.

In normal English, a system is a set of interacting or interdependent components forming an integrated whole or a set of elements (often called 'components' ) and relationships which are different from relationships of the set or its elements to other elements or sets.

4426 questions
45
votes
7 answers

How do you run a .bat file from PHP?

Can anyone tell me how to execute a .bat file from a PHP script? I have tried: exec("C:\[path to file]"); system("C:\[path to file]"); Nothing is working. I've checked the PHP manuals and googled around but can't find a good answer. Anyone know…
undefined
  • 4,770
  • 8
  • 52
  • 88
44
votes
2 answers

What's the difference between a System property and environment variable

I am not clear about this. When I run a java App or run an Applet in applet viewer, (in the IDE environment), System.getProperty("java.class.path") gives me the same as System.getenv("CLASSPATH") which is the CLASSPATH defined in my env…
Khue Vu
  • 3,022
  • 4
  • 35
  • 39
43
votes
6 answers

How to list out all Foreign Keys with "WITH NOCHECK" in SQL Server

Does anyone know a query for listing out all foreign keys in a database with WITH NOCHECK description applied to it? (removing them will boost performance and stability).
digiguru
  • 12,010
  • 18
  • 59
  • 83
41
votes
11 answers

get unique machine id

I want to get unique unchangeable Machine id Like Processor serial number of the computer for distribute a software with out copying. I tried with processor serial number and hard disk serial number that all are changing after formatting and…
ush
  • 603
  • 4
  • 16
  • 22
40
votes
13 answers

How do I check if an app is a non-system app in Android?

I am getting a list of ApplicationInfo Objects with packageManager.getInstalledApplications(0) and attempting to categorize them by whether or not they are a system application. For a while I have been using the technique described here, however…
Phil
  • 34,061
  • 21
  • 117
  • 154
39
votes
3 answers

Why fork() before setsid()

Why fork() before setsid() to daemonize a process? Basically, if I want to detach a process from its controlling terminal and make it a process group leader : I use setsid(). Doing this without forking before doesn't work. Why?
cerisier
  • 1,051
  • 1
  • 13
  • 13
39
votes
1 answer

How to find out the number of CPUs in Go lang?

Is there a simple way to find out the number of CPU's on a local machine using Go lang?
Kirill Fuchs
  • 12,706
  • 3
  • 36
  • 70
39
votes
2 answers

Is Google's Golang an interpreter or compiler?

I have been researching Golang and I see that it has a compiler. But is it compiling Go into assembly level code or just converting it into BYTECODES and then calling that compilation? I mean, even in PHP we are able to convert it into BYTECODES and…
Raheel
36
votes
3 answers

Magento system.xml and 404 error when trying to access the configuration panel

I'm trying to implement some configuration settings for my custom module. I've managed to add a tab and a section in the left navigation bar. But when I want to open a section I get a 404 error page without any further information. So far, I've…
ghostrifle
  • 1,029
  • 1
  • 13
  • 24
35
votes
5 answers

Is there a way to not wait for a system() command to finish? (in c)

Similar to: program not executing anything after a call to system() I am fairly new to using C but basically, I want to execute the following line: int a = system("python -m plotter"); which will launch a python module I developed. However, I…
gh4x
  • 746
  • 1
  • 9
  • 16
35
votes
4 answers

Can you Create your Own Hook in Drupal?

Is it possible to create your own hook in a Drupal module for other Drupal modules to consume? If not, is there a mechanism in Drupal for third party developers to provide hooks? If everything's been a no so far, where in the core are the list of…
Alan Storm
  • 157,413
  • 86
  • 367
  • 554
35
votes
2 answers

System call without invoking shell in R

In base R, there are 3 main mechanisms for invoking a system command: system, system2, and shell (which seems to share a manpage with system). None of them provide a very reliable cross-platform way to run a system command without a shell getting…
Ken Williams
  • 19,823
  • 7
  • 71
  • 126
34
votes
9 answers

PHP exec() will not execute shell command when executed via browser

I have a certain PHP script that calls exec() to execute a command to convert a PDF to JPG. This command works fine in bash. To preempt your initial troubleshooting guesses, note the following: safe_mode = Off Permission on the directory…
Alex
  • 367
  • 1
  • 4
  • 9
34
votes
2 answers

.NET Process Monitor

Is there a way to determine when the last time a specific machine last ran a process? I can use the following to determine if a process is running, but the application cannot grab the process if it has since stopped. Process[] process =…
Nick Vaccaro
  • 5,240
  • 6
  • 33
  • 58
32
votes
3 answers

How to print bytes in hexadecimal using System.out.println?

I've declared a byte array (I'm using Java): byte test[] = new byte[3]; test[0] = 0x0A; test[1] = 0xFF; test[2] = 0x01; How could I print the different values stored in the array? If I use System.out.println(test[0]) it will print '10'. I'd like it…
dedalo
  • 2,441
  • 12
  • 30
  • 34