Access child's WEXITSTATUS

I am trying to access a child's exit status in xCode but I keep getting 0.The code however works inside the Terminal. Am I missing something? #include <stdio.h> #include <sys/types.h> #include <unistd.h> #include <stdlib.h> #...
more »

2017-09-25 11:09 (0) Answers

How Process request on Ruby on Rails?

I just want save hashs on my database,but before I want check with Api, if some params whats sent to me from server is right, I will save to database In my intializers I have this require 'blockcypher' Block_cypher = BlockCypher::Api.new(api_toke...
more »

2017-09-03 21:09 (0) Answers

Activiti: remaining cache

Using the activiti Java API, I need to check the state of a process within a loop (with a timer). This is my test code: HistoricProcessInstanceQuery historicProcessQuery = processEngine.getHistoryService() .createHistoricProcessInstanceQue...
more »

2017-08-17 17:08 (0) Answers

Getting information about process in Swift

I am trying to get some data about a process in Swift. I am using this code as a starting point: pid_t pid = 10000; rusage_info_current rusage; if (proc_pid_rusage(pid, RUSAGE_INFO_CURRENT, (void **)&rusage) == 0) { cout << rusage.ri_d...
more »

2017-05-09 18:05 (1) Answers

Windows Accounts and processes exploitation

Part 1- Do all processes and executables in Windows require an account run and manage them. I was reading how the System account manages the core processes of the OS while service accounts and User accounts manage applications. Part 2- Do applicati...
more »

2017-04-17 17:04 (1) Answers

Start command with new process group id golang

I'm starting a command and storing its PID with the intention of killing it later on. As the process is started with the command creates sub processes, I have to send the kill signal to all process group using syscall.Kill(-pid, syscall.SIGINT) T...
more »

2017-04-12 11:04 (0) Answers

Java exec method, how to handle streams correctly

What is the proper way to produce and consume the streams (IO) of external process from Java? As far as I know, java end input streams (process output) should be consumed in threads parallel to producing the process input due the possibly limited buf...
more »

2017-03-13 09:03 (2) Answers

prctl(PR_SET_PDEATHSIG) race condition

As I understand, the best way to achieve terminating a child process when its parent dies is via prctl(PR_SET_PDEATHSIG) (at least on Linux): How to make child process die after parent exits? There is one caveat to this mentioned in man prctl: T...
more »

2017-02-27 22:02 (2) Answers

Tool to identify a missing tag for an HTML element

As part of the WebPage automation, I'm looking to ensure development team is adding a ID tag with unique value for each of the web element, so that, the automation team can create a easily maintainable object repository. In this context, was looking...
more »

2017-01-19 14:01 (0) Answers

How to terminate (SIGINT) a subprocess in Haskell?

I'm writing a small program in Haskell which manipulates the commands arecordmidi and aplaymidi to record short improvisations on my digital piano through MIDI. I will press the R key, my program will create a new subprocess with the command arecordm...
more »

2016-12-28 19:12 (1) Answers

Java file path and url in Process class

How to edit these code to make it work: String[] var1 = { "\"C:\\Program Files\\Internet Explorer\\iexplore.exe" }; String[] var2 = { "http://google.com" }; Runtime runTime = Runtime.getRuntime(); Process process = runTime.exec("\"C:\\Program F...
more »

2016-11-15 20:11 (2) Answers

Creating process with arguments in Swift?

Problem with doing process in Swift 3, It's not working, I click and nothing is happening. let open = Process() open.launchPath = "/usr/bin/openssl" open.arguments = ["openssl enc -aes-256-cbc -d -in \"" + existing.stringValue + "\"...
more »

2016-11-04 13:11 (0) Answers