New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Searching for an OSX developer


Post Reply New Thread Subscribe

 
Thread Tools
schoenberger

 
Member Since: Apr 15, 2010
Posts: 2
schoenberger is on a distinguished road

schoenberger is offline
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,
QUOTE Thanks
Babkockdood

 
Member Since: Oct 25, 2009
Posts: 59
Babkockdood is on a distinguished road

Babkockdood is offline
I'll do it, free of charge. I sent you an email. Reply to the message.
QUOTE Thanks
schoenberger

 
Member Since: Apr 15, 2010
Posts: 2
schoenberger is on a distinguished road

schoenberger is offline
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.
QUOTE Thanks

Post Reply New Thread Subscribe


« A couple xCode questions | Random Numbers in C »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Replacing a fan in a Power Mac G4(m8493) CCGGG Apple Desktops 2 01-14-2009 04:15 PM
Macbook Pro fan issue infinitbelt Apple Notebooks 1 11-03-2008 04:29 PM
2 Day old white macbook fan noise Aroundtown22 Apple Notebooks 2 04-27-2008 03:50 AM
Cant start up in OS9, Classic works from OSX. Robstar777 Running Windows (or anything else) on your Mac 2 11-17-2007 10:48 AM
printing PostScript with OSX davidp158 OS X - Operating System 9 02-09-2005 08:56 PM

All times are GMT -4. The time now is 06:28 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?