Community Page
- www.tech-recipes.com/ Jump to website »
-
Subscribe -
Community
-
Top Commenters
-
Popular Threads
-
Recent Comments
- hey
- Thanks mate, Just what I was looking for. It seemed to be a different way of doing things in Leopard than previous versions. Cheers, Mitch
- thanks, i couldnt remember.
- I did this in Garage band, but if forced me to trip the song to 8 seconds in order to send it to itunes ringtones - any ideas on this? Using the new 3GS.
- Please dont remove this Folder, It occupies only 315 MB and is useful for your Office 2003.... SRIKANTH
5 years ago
A lot of users forget to give the time argument and are then puzzled by the error message shutdown produces. The time argument is mandatory; in 90 percent of all cases this argument will be the word now.4 years ago
4 years ago
when i try to install mandrake 10 it says'you may safely reboot or halt your system'.what is this???
4 years ago
4 years ago
reboot
4 years ago
reboot</ul>
That is true. On Slackware Linux, both "halt" and "reboot" work. I know this is also true for OpenBSD.
If you'd like a user to be able to shutdown or reboot a machine, the easiest way to do this is through "sudo".
4 years ago
4 years ago
shutdown -rn now is how I usually reboot a machine of mine. shutdown -r by it's self will sync the disks, -n forces this (I like to be on the safe side).
halt just stops the processors and inits the system without syncing disks. You'll more than likely come back with your system running FSCK on your FS, and you better pray your using ext3.
4 years ago
If the system is not in run level 0 or 6 halt/reboot/poweroff calls shutdown
so halt is really just a wrapper for shutdown
don't believe me? man halt
3 years ago
shutdown -rn now is how I usually reboot a machine of mine. shutdown -r by it's self will sync the disks, -n forces this (I like to be on the safe side).
halt just stops the processors and inits the system without syncing disks. You'll more than likely come back with your system running FSCK on your FS, and you better pray your using ext3.</ul>
What type of idiot response is this. Have you ever heard of checking argv[0], it tells you how the process was called. Halt checks this and then runs according to how it was called.
if ((progname = strrchr(argv[0], '/')) != NULL)
progname++;
else
progname = argv[0];
if (!strcmp(progname, "reboot")) do_reboot = 1;
if (!strcmp(progname, "poweroff")) do_poweroff = 1;
Moral of this story "think before you open your mouth"