Man command doesn't display any output amonst other problems :-)


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Man command doesn't display any output amonst other problems :-)
# 1  
Old 01-31-2007
Man command doesn't display any output amonst other problems :-)

hi all,

Newbie to Unix and AIX. So my apologies if this is in the wrong place, etc.

Working on box -

uname# uname -a
AIX appt 3 5 00C08AAF4C00

when i type man (some valid command)
it just returns me to the # prompt.

Its running on the KSH shell.

man was working but i was trying to install monitor-9.1.2 so i could get system stats. I have put the tar.gz file in a directory of its own, un tz, and un tar'd it. Changed the makefile cause the 3 locations requiried where all looking at locations usr/local/man /ucd and /bin. so changed these to /usr/man /ucd and /bin.

tried to make the file but getting error

=====================================================
make: 1254-004 The error code from the last command is 1.
make: 1254-005 Ignored error code 1 from last command.
make all
cc -Dmon_notdef -DCOMPPROG=\"/usr/bin/gzip\" -DHIGHLIGHT=A_STANDOUT -
DMON_VERSION=\"2.1.9\" -DMON_DATE=\"26feb2001\" -o get_odm get_odm.c -s -lodm -D
MAIN
/usr/bin/sh: not found

make: 1254-004 The error code from the last command is 1.


Stop.
make: 1254-004 The error code from the last command is 2.


Stop.
========================================================
since then man hasnt worked also some current cron jobs i.e. errclear are now not function saying cannot exec shell.

Im quite worried that i've managed to kill something here. Any advice welcomed.

Again this is kinda several problems but i think they're all linked.

Thanks in advance for the help.
# 2  
Old 02-01-2007
just to update this.

i tried changing my cron jobs by putting /bin/ksh in front of the commands to get them to run in ksh rather than sh which i believe is the default for cron jobs. But still erroring out.

Also within /bin i cannot see an entry for sh ?!?! have i managed to delete my sh shell ??
# 3  
Old 02-01-2007
From a troubleshooting standpoint, if my shell (either one) were missing, I'd start checking errpt for disk problems and root's shell (grep root /etc/passwd) to make sure it's where I think it's supposed to be. I'd also try a find / -name sh -print to try and locate it.

I'd log in to another 5.3 server and check out where sh is located and how /bin and /usr/bin are set up. On my AIX 5.3 server, /bin and /usr/bin are symbolically linked. There are 830 files in my /bin directory for comparison.

You're able to log in so there's a shell somewhere. Check /etc/passwd for the location of your shell. Mine's in /bin/ksh and root's is in /usr/bin/ksh.

Carl
# 4  
Old 02-01-2007
ok

errpt returns the following

IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION
BFE4C025 1114105506 P H sysplanar0 UNDETERMINED ERROR

grep root /etc/passwd
root:!:0:0::/:/usr/bin/ksh

So root must be using ksh.

as for finding sh - no relevant directories are returned.
I've checked my /bin and there is no sh. I can see the symbolic link between /bin and /usr/bin.

Roots shell is ksh as is my logon's.

Its just wierd that there is no sh within /bin now and that my cron jobs are failing.
# 5  
Old 02-01-2007
ive got a nasty feeling somehow i've rm'd sh or what i was trying to do with the monitor program and installing that has corrupted or removed sh.
in which case how am i going to reinstall a shell!!! lol sounds like a nightmare. can always rebuild the box worst case but would like to avoid that

Cheers for the help by the way
# 6  
Old 02-01-2007
In looking at my AIX 5.3 box:

Code:
AIX:stctivprd01$ ls -li ksh sh
 6340 -r-xr-xr-x   4 bin      bin          243428 Mar 03 2005  ksh
 6340 -r-xr-xr-x   4 bin      bin          243428 Mar 03 2005  sh

I see that sh and ksh are linked. So from within /bin type:

Code:
# ln ksh sh

And that should take care of that. Smilie

Carl
# 7  
Old 02-01-2007
I thought that was the solution then mate. but alas i get this

# ls ksh sh
ls: 0653-341 The file sh does not exist.
ksh
# ls -li ksh
178 -r-xr-xr-x 4 root system 237948 16 Sep 2004 ksh

i know this is probably a really stupid question but if they're linked then can i just copy ksh in the same /bin directory and rename it sh then ln the two files ?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. SuSE

Find command doesn't pipe the output as required.

Hi, I am using below code snippet to echo/display the files found (matching a pattern from searchstring.out file) and the corresponding owner. while read j do echo "Pattern to search is:- $j" find / -name "*$j*" |\ while read k do echo "File found is:- $k" owner=$(ls... (9 Replies)
Discussion started by: Vipin Batra
9 Replies

2. Shell Programming and Scripting

Need help in shell Scripting to display a output from a command

Please find my below requirement and see if you can help me on this. I am looking for a shell script which can provide me the below output. Manuall steps which i am doing now 1) First I source the File $ . ./WC_env.sh 2) Execute the command $ /app/oracle/product/mos/bin/mosotl -url... (2 Replies)
Discussion started by: sudheshpn@gmail
2 Replies

3. UNIX for Dummies Questions & Answers

[Solved] Custom actions in Thunar doesn't display at all.

I have came across a few websites stating some custom actions for Thunar - crunchbang ubuntu I tried inputting the stated commands to Thunar, but it doesn't display at all in mine. I tried "gksu thunar %f" ( Opens current folder with root permissions.) , but when I right click in a... (0 Replies)
Discussion started by: Hijanoqu
0 Replies

4. Homework & Coursework Questions

man command output to a txt file

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: I am trying to outut the man command output into a text file which will help me for future reference. 2.... (8 Replies)
Discussion started by: hariniiyer300
8 Replies

5. Shell Programming and Scripting

background functions doesn't display their output

hello there, there's a function, in my shell script, i'd like to run in the background. here's an example: log() { local SELF=${0##*/} tty -s && echo ": $*" } some_func() { # do something log "This text is not displayed in the terminal's output when running in the... (1 Reply)
Discussion started by: Shedon
1 Replies

6. Shell Programming and Scripting

Net::SSH::Perl->Execute any unix command & display the output in a proper form

Net::SSH::Perl ...... how to print the output in a proper format my $cmd = "ls -l"; my $ssh = Net::SSH::Perl->new($host); $ssh->login($user, $pass); my($stdout, $stderr, $exit) = $ssh->cmd("$cmd"); print $stdout; the script works fine, but i am unable to see the output... (2 Replies)
Discussion started by: gsprasanna
2 Replies

7. UNIX for Dummies Questions & Answers

Command display output on console and simultaneously save the command and its output

Hi folks, Please advise which command/command line shall I run; 1) to display the command and its output on console 2) simultaneous to save the command and its output on a file I tried tee command as follows; $ ps aux | grep mysql | tee /path/to/output.txt It displayed the... (7 Replies)
Discussion started by: satimis
7 Replies

8. UNIX for Dummies Questions & Answers

sendmail problems - no man pages

Hi all, I have a virtual dedicated unix server somewhere (not sure we can put names, so ain't putting it yet :p) anyway, I have problems using sendmail, but before I am asking for help, I don't get ANY manpages for sendmail on my machine. I would like to try and solve this on my own (the... (2 Replies)
Discussion started by: saariko
2 Replies

9. Solaris

Solaris 10 install doesn't display Network Connectivity prompt page

I have two Dell x86 machines on which I am attempting to install Solaris 10 from CD. I am not doing a Jumpstart install. This is my first experience in installing Solaris (or any other OS). I am following the instructions at How to Quickly Install the Solaris 10 1/06 OS The first machine... (3 Replies)
Discussion started by: sarahsi
3 Replies

10. AIX

Man command doesn't display any output amonst other problems

hi all, Newbie to Unix and AIX. So my apologies if this is in the wrong place, etc. Working on box - uname# uname -a AIX appt 3 5 00C08AAF4C00 when i type man (some valid command) it just returns me to the # prompt. Its running on the KSH shell. man was working but i was trying... (6 Replies)
Discussion started by: djdavies
6 Replies
Login or Register to Ask a Question