reboot

How to restart Linux from inside a C++ program?

I have a Qt 4 GUI where I need to have a option in a drop-down menu that allows the user to choose to restart the computer. I realize this might seem redunant with the ability to restart the computer in other ways, but the choice needs to stay there. I've tried using system() to call the following: a suid-root shell script a non-suid s...

Checking only "Automatic" services with powershell.

I've seen lots of scripts out there for manually stopping/starting services in a list, but how can I generate that list programatically of -just- the automatic services. I want to script some reboots, and am looking for a way to verify that everything did in fact start up correctly for any services that were supposed to. ...

Is there any way to reboot and execute the VFD without ghost client?

I don't know if this is the appropriate place for me to ask this question, since it's more for system maintenance, but I'm having difficult time finding any answers on Google. but is there any way to reboot and execute VFD, virtual floppy disk, without ghost client?? ...

Android: popup to reboot phone

I would like to produce a popup window giving the user to ability to select yes to reboot the phone. Possible? ...

.Net Remoting - Reboot Server and get reboot status

I have a client server set up between different computers on a network using .Net Remoting in C#. The server runs in a service that starts up when the computer turns on. I want the client to be able to restart the computer that is running the server service and receive a status if the restart succeeded or failed. What is the best appro...

Restart Mac OS X ungracefully using a C++ call?

How do I restart Mac OS X using C++ (not Objetive-C) without invoking any child processes? Don't care if it's ungraceful. system("reboot"); //Is not acceptable as it relies on invoking a process ...

Can I get logcat logs after phone reboots?

I'm testing an android application with a long running service. I'm using Eclipse and have the usb cord hooked up with the phone sitting next to me. Since it's a long ongoing service, I do some other work while it runs and check the logcat logs every once in a while to make sure everything is going as expected. A few minutes ago I noti...

appWidget layout reseting after device restart

I have a simple appWidget that displays an image. The image is selected in the configuration activity and the widget is updated via the remove view. This is done on a button push executing the code below: Intent intent = new Intent(context, KidDialog.class); intent.setData(selectedImage); PendingIntent pendingIntent = PendingIntent.g...

Objective-C restart iphone or possibly another method?

I read that there was no method to restart the iPhone (at least that will go through the app store), so I am wondering if you have any other ideas. Basically, at my desk, I receive "No Service"... When I go out to my car (in a service area), I remain in No Service without being able to make a call until I restart my iPhone. I've tried ...

How to know a computer is rebooted

I reboot a remote computer with Wake-on-Lan and I would like to know if there is a way to know that the computer is idling at login screen (so I can start to do the stuff that need to be done). ...

C# code that initiates a self reboot?

I want to write a program that will run on a specific web server and periodically browse to a page that is being hosted by that same web server (IIS) to check for certain text. If a certain condition was found to be true, it would initiate a reboot of the server (the one it is residing on). I can handle the checking the webpage part, th...

Inno setup ask user to restart system once installation is finished, to make system apply changes in HKLM

Im using inno setup 5.3 latest to package my vb.net application. Im setting Environment variables during installation to the windows system. It needs a reboot of the system to implement the changes made in the Environment variables. How do i prompt the user to reboot the system so as to implement changes ( as done in many applications). ...

How do I mark a directory to be deleted after reboot?

I've got an uninstaller that performs some actions and then prompts the user to reboot. I'd like a directory to be deleted after the reboot takes place. I know there's a way to do this, I'm just not sure how. I'm using a WiX installer, and I'd imagine I could use that to do so, somehow, but I'm open to alternatives (whatever's simplest ...

Make GNU screen survive reboot

I am using GNU screen a lot. I find it very annoying that everytime the server has to be rebooted I lose all my sessions (even if I know in advance, I need to set-up everything again). I've searched the web for possibilities how to make screen survive a reboot, but found nothing that works for me. Some of the methods I found and there f...

linux embedded bash script stucks on reboot

Hello, I have a simple script that at machine boot checks for a USB device, when found mounts, copies some files to the flash memory, unmounts and requires a reboot. what happens when I write to the flash is rm -rf folder_to_remove tar -zxvf from the usb key archive to the new location I found that if I comment those lines, so I do n...

android reboot option

When you'r new at making apps, for example with Camera, it regularly happens that the Camera hangs after some kind of wrong commands given to it. you can't open the camera after this has happened until you switch your phone off and on. I understand this can only be done by the system, but if there would be the possibility of giving the ...