The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > AIX
.
google unix.com



AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Display multiple output lines kingofprussia UNIX for Dummies Questions & Answers 5 05-23-2007 09:56 AM
Man command doesn't display any output amonst other problems :-) djdavies UNIX for Dummies Questions & Answers 14 02-01-2007 11:42 AM
display and output...question happyv Shell Programming and Scripting 5 01-25-2007 02:14 AM
To display 1 or 2 space bar output missutoomuch Shell Programming and Scripting 2 02-11-2006 04:25 PM
output display alignment !! rosh0623 Shell Programming and Scripting 7 07-21-2005 07:51 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-01-2007
djdavies djdavies is offline
Registered User
  
 

Join Date: Jan 2007
Posts: 22
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 (permalink)  
Old 02-01-2007
djdavies djdavies is offline
Registered User
  
 

Join Date: Jan 2007
Posts: 22
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 (permalink)  
Old 02-01-2007
andryk's Avatar
andryk andryk is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2003
Posts: 448
thats pretty scary, on an aix 5.3 'standard' installation, i get
Code:
ls -l /bin/sh
-r-xr-xr-x   5 bin      bin          237308 08 oct 2005  /bin/sh
  #4 (permalink)  
Old 02-01-2007
djdavies djdavies is offline
Registered User
  
 

Join Date: Jan 2007
Posts: 22
thats what i thought. dont know how it happened though. wierd thing is the box is running ok apart from the cron jobs that i guess are relying on sh. i hate to ask this question but if i havent got /bin/sh i take it i need to reinstall the sh shell????

i can sense the impending doom already, but how do i go about this??

This is a test box luckily so no impact to business etc. so i could do with suggestions on what i should do next ? if i can get the cron jobs runnning do i really need the sh shell since my root user uses ksh etc
  #5 (permalink)  
Old 02-01-2007
djdavies djdavies is offline
Registered User
  
 

Join Date: Jan 2007
Posts: 22
this is all sorted now thanks to carl - simply had to recreate the link in the /bin folder from ksh to sh -this recreated the sh file linked to ksh. sorted
  #6 (permalink)  
Old 02-01-2007
dukessd dukessd is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2006
Posts: 307
Are you sure all is OK?
andryk's sh file does not show as being a link!
Looks like you have killed your sh file!
more gloom on the way me thinks :0(
Good workaround though, top marks.
Has it survived a reboot yet?
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:33 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0