OESF Portables Forum

Everything Else => Zaurus - Everything Development => Distros, Development, and Model Specific Forums => Archived Forums => Linux Applications => Topic started by: boosalis on February 04, 2004, 09:05:52 pm

Title: How to start network from application
Post by: boosalis on February 04, 2004, 09:05:52 pm
I want to do some zaurus to zaurus WiFi communication (that is peer to peer) and have been able to do this by creating an new profile with a \"adhoc\" config and assinging a IP address (192.168.0.1&2)

I want to know if it is possible to start this profile from my program with out the GUI. Is there a script for doing what the little applet does in the tray.  

Does anyone know what this applet is even called

Thank you for any advise you can provide.

-David
Title: How to start network from application
Post by: doseas on February 05, 2004, 03:03:48 pm
From a script, you can do the following:

/sbin/cardctl scheme AdHoc

where \"AdHoc\" is whatever name you assigned to the adhoc config.

Depending on what language you\'re developing your app in, there is usually a way to shell out & execute commands like the above.