Searching for an OSX developer

Joined
Apr 15, 2010
Messages
2
Reaction score
0
Points
1
Hi

I am searching for someone who can develop some system funcitons for me.
I have currently developed the functions for windows and Linux and also need them for OSX.

Functions like:
> Get number of CPUs, Cpu usage, memory usage
> Get processes tree (with memory usage, cpu usage and parent process)
> Get current user logged in
> Create a daemon/service
> Get ammount of free drive space

Additional
> Apple script to start an application in a subfolder without opening a terminal


The job is paid.

If you are interested, please send me an email to
mail (at) BinaryAlchemy (dot) de
with
-some information about you
-which tasks (if not all) you are interested in
-how many days you will probably work on it (roughly, for price estimation)
-when you have time to start the development


thanks,
 
OP
S
Joined
Apr 15, 2010
Messages
2
Reaction score
0
Points
1
I have a more detailed description about the task:

The Qt Creator is used as development environment so far,
but functions can be developed without any QT in C++.


####################################
A) Apple script starter:
####################################
Create an apple script .../_release/rrProcessViewtest
On execution, it
1. defines an environment variable RR_ROOT. This RR_ROOT is *hardcoded* to the full path of .../_release/
2. parses a second script /_release/globalScript. This script defines the environment variable $RRCMD
3. starts
${RR_ROOT}/bin/mac/rrProcessViewtest.app/Contents/MacOS/rrProcessViewtest $argv:q $RRCMD
$argv:q are all commandline flags that have been used as flags to start this apple script



####################################
B) Get System and Process Information, application rrProcessViewtest
####################################
The application rrProcessViewtest collects data about the system and all processes running on the system.

-----------------------------
B1) Process Information
-----------------------------
Source file RR_sysprocesslist.h:
The class _rrProcessList collects a list of all processes running on the system.
Informations returned per process are:
-Name of the Process
-Process ID
-Parent Process ID

-Memory usage
-CPU Ticks (used to calculate cpu usage %)
-Owner of the process (user that started the process)

- total CPU ticks
To convert the CPU Ticks into Cpu usage %, the class retrieves has to retrieve a global CPU tick value (at least on windows and linux)


-----------------------------
B2) System Information
-----------------------------
Source file RR_sysinfo.h:
QString OsInfo; //name information about the OS, e.g. "Fedora 7" or "XP sp2"
quint8 OSVersionShort; //e.g. windows7.1=71 Fedora 8=80, Suse 11.2 = 112
int totalMemory; //total memory installed
int cpus; //number of CPUs
QString CpuInfo(); //returns a description string of the CPUs, e.g. "4x3.0 Intel"
QString guiUser(); //returns the user loggged in
bool isX64(); //is this system a x64 bit OS? (otherwise x32)
int getAvailableMemory(); //available memory in MB
float getCpuUsage(); //current *total* CPU usage 0-100%
QString guiUserSystem(); //get user logged in, it has to be possible to run it from a service/daemon:

optional:
rrTime_t GetLastUserInput(); //last time the user has pressed a key or moved the mouse
bool setSystemTime(rrTime_t newTime); //set the system time to the new value




####################################
C) Create service/daemon
####################################


Create a service/daemon executable
- contains functions to register/de-register the executable as a daemon
- it changes its userID/groupID to a user XXXX

should be already implemented (if B is working):
- start a child process
- check if child process is running

Note:
The service reads the file rrAutostartservice.cfg to know which user/login to use and which executable to start
The file has to be placed right beside the executable.
A sample rrAutostartservice.cfg is beside the source files.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top