Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question
Tag: system
What is the 4-digit octal Unix file permission system? [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Closed 4 years ago. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to
PHP hang issue with passthru()/system() call and output buffering
I do have a strange problem. I’m trying to get around output buffering in PHP to run system() calls and get instant output. It works very well, but for some strange reason, the ping command on “test.de” isn’t presenting instant output as the ping on google.de does. I do see the first line for ‘ping test.de’ in the linux shell
How do I assign the delete key to another character in Linux with termios?
I’ve working on this problem where I need to assign a character to a become the delete key in Linux with termios. I’ve looked up resources and it seems like everyone is doing it this way but for some reason I cannot get it to work. So I am trying to bind the ‘q’ character to become the new delete
How to cross compile system tap scripts for user space application
The challenge that I faced was on identifying the process name / library name within the script.During the cross compilation the process name and library name are being referred with real path of process/library in the host (which I understood after peeked the generated .ko). Since the real path of host and target are different, the cross compiled instrumentation is
escape alarm() process timeout with nohup or setsid?
I have a monitoring application, Zabbix agent, that allows me to run arbitrary commands/scripts and grab the return value. The agent is configured with a timeout and any command that exceeds the timeout will be killed. For every command that is run, it first sets the timeout via alarm(timeout) and then forks the agent process before running the command in
Clean console on assembly
Is there anything similar to system(“cls”); that exists on C for Assembly? I’m using NASM to compile and I’m working on a x86 linux. UPDATE 1: Here’s my modified code to integrate sugestion: Cheers Answer To imitate the terminals clear command have in a .data section: then whenever you want to clear the terminal do:
How does read(2) in Linux C work?
According to the man page, we can specify the amount of bytes we want to read from a file descriptor. But in the read’s implementation, how many read requests will be created to perform a read? For example, if I want to read 4MB, will it create only one request for 4MB or will it split it into multiple small
System commands in c#
Does C# have an equivalent to the system command in C? for example, how would I do this in c#?. I’m using Mono on Linux. Answer No problem I got it. Tested and working on Ubuntu 13.10
C system function causes error ‘sh: Syntax error: “(” unexpected ‘
I wrote a simple program in C on Linux to delete all the files in a directory except one called svn like this: But when I compile and run it, the terminal says: sh: Syntax error: “(” unexpected However, when I type and run the command in the terminal directly, all things are done correctly. Any ideas? Answer The answer