11-13-2007
Major OS errors/Bash errors help!!!!
Hi all, dummy here.... I have major errors on entering the shell. On login I get:
-bash: dircolors: command not found
-bash: tr: command not found
-bash: fgrep: command not found
-bash: grep: command not found
-bash: grep: command not found
-bash: id: command not found
-bash: [: =: unary operator expected
-bash: whoami: command not found
-bash: grep: command not found
-bash: mesg: command not found
-bash: dircolors: command not found
-bash: who: command not found
-bash: cut: command not found
-bash: cut: command not found
-bash: hostname: command not found
-bash: mail: command not found
-bash: date: command not found
-bash: who: command not found
-bash: hostname: command not found
-bash: date: command not found
-bash: who: command not found
-bash: hostname: command not found
-bash: date: command not found
-bash: who: command not found
-bash: cut: command not found
-bash: cut: command not found
-bash: who: command not found
-bash: mail: command not found
-bash: hostname: command not found
-bash: date: command not found
-bash: who: command not found
Using Centos 4.5 on a dual Xeon server with WHM/CP and a few rpm's.
This happened after installing Flash Media Server which has been removed.
Many crucial unix commands are not functioning. Can't even use ping or mkdir, etc.
Any thoughts? Can I avoid an OS restore?
10 More Discussions You Might Find Interesting
1. Filesystems, Disks and Memory
I am very new to the world of Unix, in the middle of a crash course as I write this due to a system failure for my company. This system went down approximately 24 hours ago due to some apparent thunderstorms that passed through. The problem is that my company, like many others, has laid off... (5 Replies)
Discussion started by: Phaedirean
5 Replies
2. HP-UX
fatal server error:
couldn't open x pointer device! is one attached?
xinit: connection refused (errno 239): unable to connect to X server
xinit: no such process (errno3): server error. (1 Reply)
Discussion started by: nobody
1 Replies
3. UNIX for Advanced & Expert Users
$ errpt | more
IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION
3074FEB7 0802050205 T H fscsi1 ADAPTER ERROR
B8113DD1 0802050205 T H fcs1 LINK ERROR
B8113DD1 0802050205 T H fcs1 LINK ERROR
3074FEB7 0802050205 T H fscsi0 ADAPTER ERROR
B8113DD1 ... (0 Replies)
Discussion started by: mcastill66
0 Replies
4. AIX
$ errpt | more
IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION
3074FEB7 0802050205 T H fscsi1 ADAPTER ERROR
B8113DD1 0802050205 T H fcs1 LINK ERROR
B8113DD1 0802050205 T H fcs1 LINK ERROR
3074FEB7 0802050205 T H fscsi0 ADAPTER ERROR
B8113DD1 ... (2 Replies)
Discussion started by: mcastill66
2 Replies
5. UNIX for Advanced & Expert Users
Hi all, I have major errors on entering the shell. On login I get:
-bash: dircolors: command not found
-bash: tr: command not found
-bash: fgrep: command not found
-bash: grep: command not found
-bash: grep: command not found
-bash: id: command not found
-bash: #
root@host # pwd
/bin... (0 Replies)
Discussion started by: wcmmlynn
0 Replies
6. Shell Programming and Scripting
Hello everyone,
I got this type of error when programming in bash
new.bat: 16: cannot create : Directory nonexistent
$bool
new.bat: 37: Syntax error: "then" unexpected (expecting "fi")
Does anyone know why?
Here is my code
#!bin/bash
#function helps(){... (4 Replies)
Discussion started by: bbbash
4 Replies
7. Shell Programming and Scripting
I'm working on a script that will search through a directory for MKV files and remux them to MP4. I found a few other scripts around the net that do this, but they all have limitations that don't always get the job done. The main limitation I've found is that most scripts look for the video track... (2 Replies)
Discussion started by: rayne127
2 Replies
8. Shell Programming and Scripting
Original script written on CentOS 6.3 with GNU bash 4.1.2
Destination system is Solaris 9 with GNU bash 2.05 (not changeable by me)
I have a script written on the linux side but now we need to provide a version to another site that "doesn't like linux". I've been going through changing the ] or... (13 Replies)
Discussion started by: oly_r
13 Replies
9. Ubuntu
I wrote Bash script and now I want to convert it to Ash. One headache is this function:
do_adduser() {
setaddprompt
_arr_add=("Add manually" "Add via TXT" "return to main menu" "exit program")
select add_action in "${_arr_add}"
do
case "$REPLY" in
1)... (7 Replies)
Discussion started by: fzivkovi
7 Replies
10. Shell Programming and Scripting
I am beginning to write a new version of the bash menu below. The previous version worked great and now when I start the updated bash it opens and a some lines print in the terminal and it closes quickly. I know there are errors but how can I see them or fix them, I tried set -x with the same... (12 Replies)
Discussion started by: cmccabe
12 Replies
OPEN(1) Linux 1.x OPEN(1)
NAME
open - start a program on a new virtual terminal (VT).
SYNOPSIS
open [-c vtnumber] [-s] [-u] [-l] [-v] [--] command command_options
DESCRIPTION
open will find the first available VT, and run on it the given command with the given command options, standard input, output and error are
directed to that terminal. The current search path ($PATH) is used to find the requested command. If no command is specified then the envi-
ronment variable $SHELL is used.
OPTIONS
-c vtnumber
Use the given VT number and not the first available. Note you must have write access to the supplied VT for this to work.
-s Switch to the new VT when starting the command. The VT of the new command will be made the new current VT.
-u Figure out the owner of the current VT, and run login as that user. Suitable to be called by init. Shouldn't be used with -c or -l.
-l Make the command a login shell. A - is prepended to the name of the command to be executed.
-v Be a bit more verbose.
-w wait for command to complete. If -w and -s are used together then open will switch back to the controlling terminal when the command
completes.
-- end of options to open.
NOTE
If open is compiled with a POSIX (Gnu) getopt() and you wish to set options to the command to be run, then you must supply the end of
options -- flag before the command.
EXAMPLES
open can be used to start a shell on the next free VT, by using the command:
open bash
To start the shell as a login shell, use:
open -l bash
To get a long listing you must supply the -- separator:
open -- ls -l
SEE ALSO
login(1), doshell(8), switchto(1).
AUTHOR
Jon Tombs <jon@gtex02.us.es or jon@robots.ox.ac.uk>
-w idea from "sam".
19 Jul 1996 V1.4 OPEN(1)