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
533
votes
13 answers

How can I check the system version of Android?

Does anyone know how can I check the system version (e.g. 1.0, 2.2, etc.) programatically?
davs
  • 8,566
  • 8
  • 39
  • 53
505
votes
11 answers

How do I execute a command and get the output of the command within C++ using POSIX?

I am looking for a way to get the output of a command when it is run from within a C++ program. I have looked at using the system() function, but that will just execute a command. Here's an example of what I'm looking for: std::string result =…
Misha M
  • 9,887
  • 16
  • 46
  • 64
399
votes
17 answers

How to get current CPU and RAM usage in Python?

What's your preferred way of getting current system status (current CPU, RAM, free disk space, etc.) in Python? Bonus points for *nix and Windows platforms. There seems to be a few possible ways of extracting that from my search: Using a library…
lpfavreau
  • 11,693
  • 5
  • 28
  • 35
325
votes
15 answers

Getting output of system() calls in Ruby

If I call a command using Kernel#system in Ruby, how do I get its output? system("ls")
Macha
  • 13,228
  • 14
  • 54
  • 68
286
votes
2 answers

Java system properties and environment variables

What's the difference between system properties System.getProperties() and environment variables System.getenv() in a JVM?
Praveen Sripati
  • 29,779
  • 15
  • 74
  • 108
234
votes
16 answers

Get OS-level system information

I'm currently building a Java app that could end up being run on many different platforms, but primarily variants of Solaris, Linux and Windows. Has anyone been able to successfully extract information such as the current disk space used, CPU…
Steve M
  • 10,311
  • 12
  • 48
  • 63
206
votes
6 answers

Difference between a "coroutine" and a "thread"?

What are the differences between a "coroutine" and a "thread"?
jldupont
  • 82,560
  • 49
  • 190
  • 305
199
votes
5 answers

How to run cron once, daily at 10pm

I had entered: * 22 * * * test > /dev/null However, I am being notified via email that this is running every minute. I am confused I guess because I thought this was correct for what I am wanting.
user420095
193
votes
11 answers

Why doesn't "System.out.println" work in Android?

I want to print something in console, so that I can debug it. But for some reason, nothing prints in my Android application. How do I debug then? public class HelloWebview extends Activity { WebView webview; private static final…
TIMEX
  • 217,272
  • 324
  • 727
  • 1,038
153
votes
2 answers

C: Run a System Command and Get Output?

Possible Duplicate: How can I run an external program from C and parse its output? I want to run a command in linux and get the text returned of what it outputs, but I do not want this text printed to screen. Is there a more elegant way than…
jimi hendrix
  • 2,051
  • 5
  • 18
  • 18
138
votes
5 answers

Difference between subprocess.Popen and os.system

What is the difference between subprocess.Popen() and os.system()?
Arovit
  • 2,967
  • 5
  • 18
  • 23
92
votes
7 answers

How to implement tag system

I was wondering what the best way is to implement a tag system, like the one used on SO. I was thinking of this but I can't come up with a good scalable solution. I was thinking of having a basic 3 table solution: having a tags table, an articles…
Saif Bechan
  • 14,061
  • 22
  • 74
  • 122
66
votes
1 answer

Convert R vector to string vector of 1 element

Im working with the programming language R now. I have a vector: a <- c("aa", "bb", "cc") And I want to paste these to a system command, I'm trying it this way now: args <- paste(a, sep=" ") system(paste("command",args, sep=" ")) But now I'm only…
Jetse
  • 1,755
  • 4
  • 15
  • 12
66
votes
3 answers

How to set system wide umask?

I am working in a lab where we are running Linux (Debian and Ubuntu). Usernames and group names are handled by NIS and yp. We have some common users that everybody has access to that run the experiments and then we each have our own users in…
HansHarhoff
  • 1,787
  • 2
  • 19
  • 32
65
votes
1 answer

What are the differences of system(), exec() and shell_exec() in PHP?

It is possible to run an external command by three PHP functions of system(); exec(); shell_exec(); but what are their differences? In spite of their specific applications, in most cases, the can be equally used. I am curious to know which is…
Googlebot
  • 13,096
  • 38
  • 113
  • 210
1
2 3
99 100