Sponsored Content
Full Discussion: Reboot the Unix work station
Top Forums UNIX for Dummies Questions & Answers Reboot the Unix work station Post 3550 by Andy Hibbins on Thursday 5th of July 2001 12:37:13 PM
Old 07-05-2001
If you're running Linux then you should be able to press "ctrl-alt-delete" from a virtual console.
For ctrl-alt-delete to work it needs there needs to be an entry in the /ec/inittab file something like:
ca::ctrlaltdel:/sbin/shutdown -t3 -r now

Also if your workstation has the sudo package you may be able to perform a shutdown/reoot with out being root, aslong as you're listed in the /etc/sudoers file.


Andy Hibbins Smilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

18Gb HD with Sparc Station 5 ?

Hello all, A quick question on Sparc Station 5. Can I use 18GB hard disk with Sparc Station 5 ?. I searched sunsolve documentation. It gives info only upto 4.2 GB for sparcstaton 5. The OS is SunOS 5.5.1 Thank You, (3 Replies)
Discussion started by: shibz
3 Replies

2. Shell Programming and Scripting

find station from where is logged in

for secure access purposes I want to know where somebody logs in working in K shell I have who am i= giving user and terminal =gxb pts/4 Jan 22 15:0 finger user => gives all sessions of user = Login name: gxb Directory: /home/gxb ... (17 Replies)
Discussion started by: ghislain
17 Replies

3. Solaris

Reboot of Unix servers - recommended?

Hello, Please can anyone tell me - is it true that you should not re-boot Unix Sun Solaris servers on a regular basis, but onyl do it when really required? We want to schedule a reboot on a daily basis, to clear any rogue processes, but have been told this is not a good idea. Can anyone... (13 Replies)
Discussion started by: polly013
13 Replies

4. UNIX for Advanced & Expert Users

shutdown and reboot unix server

Hi, please could someone advise the best command to shutdown and then for it to reboot back online again. Note: I shall be doing this from a telent session. regards venhart (3 Replies)
Discussion started by: venhart
3 Replies

5. Solaris

Automatic reboot does not work after power failure

Hi all, I have a server SUN FUJITSU in solaris 10 ; result of uname -a is : SunOS MOBD1 5.10 Generic_118833-03 sun4us sparc FJSV,GPUZC-M I have configured the eeprom to auto-boot as usual and this automatic reboot does not work in case of power failure. I must type "boot" on the prompt "ok"... (5 Replies)
Discussion started by: aribault
5 Replies

6. Solaris

how to Implicitly execute some unix commands during/after Solaris reboot

I have to execute 2 commands everytime i reboot my Solaris machine. Simple "share" and "chown" commands. Is there anywhere (maybe a config file or something) where I can include these commands so that I do not have to manually run them everytime I reboot the machine? Any help appreciated... (2 Replies)
Discussion started by: lydiaEd
2 Replies

7. UNIX for Advanced & Expert Users

sys-unconfig doesn't work after reboot

Hi All! I'm running "Solaris 10 10/08 s10s_u6wos_07b SPARC" on M5000. I ran sys-unconfig and after the machine rebooted the system did not prompt me for configuration info (system name, ip address, etc). I have also modified /etc/.sysIDtool.state changing all "1" to "0" and touch... (1 Reply)
Discussion started by: bluescreen
1 Replies

8. Solaris

Unexpected error on reboot in UNIX

Hi all, My remote unix machine failed unexpectly, and I am unable to login to it. Here is what I can see on the screen - > Boot device: .... File and args: -i > Boot load failed. > The file just loaded does not appear to be executable. > {1} ok How can I fix this problem? Has... (1 Reply)
Discussion started by: bhakti.gandhi
1 Replies

9. What is on Your Mind?

Home broadcasting station

Hi all, I have been searching application for setup a home broadcasting station via Internet. Follows are my search result; Freevo, GeeXboX, Auto-RadioX, Red5, CeBIT, Open Broadcaster etc. I haven't had any experience on their selection. Please shed me some light. Besides where can I find... (3 Replies)
Discussion started by: satimis
3 Replies

10. Emergency UNIX and Linux Support

Reboot does not work after update

Hi guys, thanks for your help. I recently did a yum update on my rhel6.4 server. After this update, user logins take for ever and the reboot command does not work. When I do a reboot, the server hangs. Nothing happens. Any help with this will be appreciated. Thank you (3 Replies)
Discussion started by: cjashu
3 Replies
readkey(3alleg4)						  Allegro manual						  readkey(3alleg4)

NAME
readkey - Returns the next character from the keyboard buffer. Allegro game programming library. SYNOPSIS
#include <allegro.h> int readkey(); DESCRIPTION
Returns the next character from the keyboard buffer, in ASCII format. If the buffer is empty, it waits until a key is pressed. You can see if there are queued keypresses with keypressed(). The low byte of the return value contains the ASCII code of the key, and the high byte the scancode. The scancode remains the same whatever the state of the shift, ctrl and alt keys, while the ASCII code is affected by shift and ctrl in the normal way (shift changes case, ctrl+letter gives the position of that letter in the alphabet, eg. ctrl+A = 1, ctrl+B = 2, etc). Pressing alt+key returns only the scan- code, with a zero ASCII code in the low byte. For example: int val; ... val = readkey(); if ((val & 0xff) == 'd') /* by ASCII code */ allegro_message("You pressed 'd' "); if ((val >> 8) == KEY_SPACE) /* by scancode */ allegro_message("You pressed Space "); if ((val & 0xff) == 3) /* ctrl+letter */ allegro_message("You pressed Control+C "); if (val == (KEY_X << 8)) /* alt+letter */ allegro_message("You pressed Alt+X "); This function cannot return character values greater than 255. If you need to read Unicode input, use ureadkey() instead. SEE ALSO
install_keyboard(3alleg4), ureadkey(3alleg4), keypressed(3alleg4), clear_keybuf(3alleg4), simulate_keypress(3alleg4) Allegro version 4.4.2 readkey(3alleg4)
All times are GMT -4. The time now is 02:43 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy