starnge behavior of shutdown


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers starnge behavior of shutdown
# 1  
Old 03-06-2006
starnge behavior of shutdown

Hi All,

I am having a stange behavior of my system. I used to use the following command to reboot my system

Shutdwon -r 0
It sometimes reboot my system and some time it is just halt the system.

If I do the hard reboot there is no probem absolutely.

I tried intit 6 this also behave in the same way.

Also I want to know why reboot is having a softlink to halt reboot -> halt

So reboot should do the same thing as halt?

Thanks & Regards
Gauri
# 2  
Old 03-06-2006
Can you post the output of the uname -a command for your system? This will help anyone who wants to help you.

And regarding the link between reboot and halt, check this out:
Code:
# ls -il /usr/bin/ksh /usr/bin/rksh
 32017 -r-xr-xr-x   2 bin        bin         159744 Jul 15  2004 /usr/bin/ksh
 32017 -r-xr-xr-x   2 bin        bin         159744 Jul 15  2004 /usr/bin/rksh

As you can see, the files /usr/bin/ksh and /usr/bin/rksh are the same, but when rksh is executed, ksh works as a restricted shell. This is because the program examines the manner in which is invoked and runs accordingly. So when you run reboot, even though halt is actually run, it sees that it is being run as reboot and reboots your system instead of halting it.
# 3  
Old 03-06-2006
Hi blowtorch,

Thanks for the reply.

how uname can help in analysing my probelm. any way I am writting it here:

Linux 10.208.27.232 2.6.11 #1 Mon Dec 19 11:18:14 PST 2005 i686 GNU/Linux

Thanks & Regards
Gauri
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

awk Behavior

Linux Release Uname details Data file Ive been at the command line for some time. Back as far as SCO and Interactive Unix. I have always used this construct without issues. I want to isolate the ip / field 1. As you can see .. the first line is "skipped". This works as... (6 Replies)
Discussion started by: sumguy
6 Replies

2. AIX

LUN Behavior

Aix 6.1, working with a nim master and nim_altmaster both LPARS have access to the same data LUN, /nimdisk I do realize the risks of having 2 servers access the same LUN, however it serves the purpose of being able to restore mksysb's to/from our DR site if necessary, at least in theory ;) ... (3 Replies)
Discussion started by: mshilling
3 Replies

3. HP-UX

Unusual Behavior?

Our comp-operator has come across a peculiar ‘feature'. We have this directory where we save all the reports that were generated for a particular department for only one calendar year. Currently there are 45,869 files. When the operator tried to backup that drive it started to print a flie-listing... (3 Replies)
Discussion started by: vslewis
3 Replies

4. Programming

Strange behavior in C++

I have the following program: int main(int argc, char** argv){ unsigned long int mean=0; for(int i=1;i<10;i++){ mean+=poisson(12); cout<<mean<<endl; } cout<<"Sum of poisson: "<< mean; return 0; } when I run it, I get the... (4 Replies)
Discussion started by: santiagorf
4 Replies

5. UNIX for Dummies Questions & Answers

Script to force Oracle database shutdown when shutdown immediate does not work

I have Oracle 9i R2 on AIX 5.2. My Database is running in shared server mode (MTS). Sometimes when I shutdown the database it shutsdown cleanly in 4-5 mints and sometimes it takes good 15-20 minutes and then I get some ora-600 errors and only way to shutdown is by opening another session and... (7 Replies)
Discussion started by: aixhp
7 Replies

6. Shell Programming and Scripting

sed behavior on hp-ux

the sed command: sed 's/^*//' file does not work on HP-UX :-( but it works fine on Linux, content of file: <tab><tab>hello output should be: hello Any ideas?? Thank you Andy (8 Replies)
Discussion started by: andy2000
8 Replies

7. HP-UX

ltoa Behavior

I am working with the following code: #include <stdlib.h> #include <string> #include <iostream> using std::cout; using std::endl; using std::flush; int main() { long lng1 = 123; long lng2 = 4567; cout<<ltoa(lng1)<<ltoa(lng2)<<endl<<flush; return 0; } Instead of receiving... (2 Replies)
Discussion started by: charitonca
2 Replies

8. Programming

Behavior of pthreads

Hi All, I ve written a small program to get started off with pthreads. I somehow feel the program doesnt meet the purpose. Please find the code and the output below. Please find my question at the bottom. #include <pthread.h> #include <stdio.h> #include <stdlib.h> void *PrintThread1(void... (4 Replies)
Discussion started by: nhrraj
4 Replies

9. Programming

ls behavior

I put this here because it is a 'behavior' type question.. I seem to remember doing ls .* and getting all the .-files, like .profile .login etc. But ls .* doesn't do that, it lsts the contents of every .*-type subdirectory. Is it supposed to? I should think that a -R should be given to... (10 Replies)
Discussion started by: AtleRamsli
10 Replies
Login or Register to Ask a Question