hi

As i don't have so much experience using Linux or Mac OS please help me to
find out shutdown commands in these two OSs

In windows platform there are too many ways to turn off/standby/hibernate
System,

In my extension (Auto Shutdown -
InBasic)<https://addons.mozilla.org/en-US/firefox/addon/5452>i use :

                var process = Components.classes["*@
mozilla.org/process/util;1*"]
                                        .createInstance(
Components.interfaces.nsIProcess);
                process.init(*DLL or ExE Path*);
                process.run(false, *args*, args.length);

to send shutdown command as args to "Command Prompt" or windows API (
shell32.dll  or  PowrProf.dll , ... ),

if any body know similar way for shutdown/Hibernate/Standby Mac or Linux
Please reply,


Any help will be appreciated,
InBasic
_______________________________________________
Project_owners mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/project_owners

Reply via email to