[Project_owners] Shutdown Mac/Linux OS
InBasic
inb.cor at gmail.com
Fri Nov 23 11:55:53 PST 2007
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.mozdev.org/pipermail/project_owners/attachments/20071123/5ab2e834/attachment-0001.html
More information about the Project_owners
mailing list