ksh file not found error for various files across system

Thread Tools Search this Thread
Operating Systems AIX ksh file not found error for various files across system
# 1  
Old 03-16-2014
Error ksh file not found error for various files across system

Our AIX system is currently having an issue where calls to various executables are returning errors such as
ksh: /usr/bin/oslevel:  not found.

This is even happening with system files, third party scripts, and with the full path included.

Telnet connections are also closing immediately upon hitting the server with the following error, despite telnetd seemingly running fine.
Connection closed by host

Lots of other executables are running fine however and seem to be entirely unaffected. The hardware isn't showing any issue and the disks aren't full.

This started yesterday, when there wasn't any users on the system. The only work that was being done on the system was running cp on a UniData database over night, which started the night before the error occurred.
# 2  
Old 03-17-2014
Is the binary /usr/bin/oslevel still there? You know what the copy command was, maybe something went wrong, wrong destination or something?
Any entries in errpt?
Did you check if the PATH is still correct?
# 3  
Old 03-18-2014
The scripts we were calling were all there. I would cd to their directory and check they were there with an ls before calling them.

The cp command was completely successful. The thousands of files were all copied to the other directory without issue. We had a nightly backup fail that same night so that might be more related to the actual problem than the copy command, unless there was some sort of struggle for control between them. However they've run simultaneously in the past without issue.

Nothing showed in errpt. I didn't check PATH but someone else might have.

To resolve the problem, our networking team did a reboot of the server. From what I understand, just to do that they had to do some sort of adjustment to /etc/rc.shutdown. After the reboot, everything was back to normal.
# 4  
Old 03-19-2014
Can you show us the count from ls -1 /usr/bin | wc -l
# 5  
Old 03-19-2014
Sure, but what's the importance of that? The contents hasn't changed in years.

ls -1 /usr/bin | wc -l

# 6  
Old 03-19-2014
I was concerned that something had gone horribly wrong, such as issuing a find and delete somewhere that had a symbolic link across to /usr/bin. Don't laugh, we've done a similar thing here - though fortunately not deleting OS files. Smilie

# 7  
Old 03-19-2014
You are right Robin, silly thing thought very rare, do happen, I experienced a few issues because of unexplained should never happen stuff...

I would have liked to know which OS we are dealing with (version...)
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

While loop a file containing list of file names until the files are found?

Hi, I have a control file which will contain all filenames(300) files. Loop through all the file names in the control files and check the existence of this file in another directory(same server). I need to infinitely(2 hrs) run this while loop until all the files are found. Once a file is found,... (5 Replies)
Discussion started by: laknar
5 Replies

2. Shell Programming and Scripting

ksh: <a perl file name> not found

I am using a perl file to run a batc job from unix prompt. I am inside the correct directory where the perl file is located. I can even find the file using ls command. But when I run the perl file , it says 'ksh: <perl_file.pl> not found'. Could anyone please let me know what is wrong? (4 Replies)
Discussion started by: Subhasis
4 Replies

3. Shell Programming and Scripting

Merge multiple files found in config file

I have a config file with a bunch of these type of blocks: <concat destfile="${standard.js.file}" append="true"> <filelist dir="${js.dir}/foo" files="foo.js, foo2.js"/> <filelist dir="${js.dir}" files="foo3.js"/> <filelist dir="${js.dir}/bar/js"... (11 Replies)
Discussion started by: Validatorian
11 Replies

4. Shell Programming and Scripting

ksh:not found

Hi, i used to run oracle queries in unix and then transfer the result in to csv files. it was working fine for a month.but today it showed an error like ksh>dimens_minus_scpt.sh not found. Can someone please help. Thanks. :wall: (4 Replies)
Discussion started by: varadharajan87
4 Replies

5. Shell Programming and Scripting

Replace all found files with an empty file?

Hi all, I need to replace certain robots.txt files with an empty file. I use the following to find the files I want to empty out: find /Sites -type f -name "robots.txt" -exec grep -il "STAGE" {} \; (finds all robots.txt files which contain the string 'STAGE') Now what do I add to this... (3 Replies)
Discussion started by: Evert
3 Replies

6. Shell Programming and Scripting

ksh ./sort.sh: not found

I've a simple .sh file: #!/bin/ksh sort -t: -k 1.13,1.13 -k 1.16,1.29 sort.txt > output.txt When i try to run this sort.sh file ./sort.sh it gives me the error: ksh: ./sort.sh: not found I've tried the following: 1) echo $SHELL /bin/ksh 2) echo $PATH... (4 Replies)
Discussion started by: kajal_ind
4 Replies

7. Shell Programming and Scripting

file not found error during loop

Hi, I have a strange problem and I'm sure its because I'm doing something stupid. When I loop through all of the files in a directory they cannot be found. Any help would be greatly appreciated. Thanks, -E $ touch a.txt $ touch b.txt $ ls a.txt b.txt $ for f in `ls` ; do... (3 Replies)
Discussion started by: earls
3 Replies

8. UNIX for Dummies Questions & Answers

ksh not found in solaris

Hi , I am new to solaris world but worked in unix for a while . I have this solaris box version 8 .I am trying to run a simple unix file . Q.shl cat Q.shl #!/bin/ksh db2 get connection state When I run the file I get following error : Q.shl ksh: Q.shl: not found This is... (6 Replies)
Discussion started by: capri_drm
6 Replies

9. Shell Programming and Scripting

Shell script run error ksh: not found

Hi All, I am trying to run a script to FTP files from one UNIX server to another UNIX server. Actually I can able to FTP file successfully by manually or paste whole script at prompt. But when I am trying to run script it is giving error. Please let me know the cause. #!/bin/sh... (3 Replies)
Discussion started by: nz80qy
3 Replies

10. Programming

ksh: make: not found

$ make ksh: make: not found Hello, when i use the "make" command in Solaris, it says the "make" command is not found! Any help appreciated! BobK (3 Replies)
Discussion started by: bobk544
3 Replies
Login or Register to Ask a Question