Sponsored Content
Operating Systems Linux Red Hat BASH command not found strang behavior Post 302488671 by abohmeed on Tuesday 18th of January 2011 06:29:21 AM
Old 01-18-2011
BASH command not found strang behavior

Hi all
I am relatively new to linux (specifically red hat). I have installed Fedora 13 on my machine and started playing with the terminal when i found a very strange behavior when typing a command that is not found:
the terminal does not prompt me back. In other words, i am logged as root (or any user) and type "bla bla bla" the bash replies "command not found" but the cursor stays besides "command not found" and does not display the prompt $(the PS1). Moreover, whatever i type in this strange phase goes without any response, be it a real command (like exit) or any garbage. This phase only ends when i press control+c.
Strange enough, when i type control-z it gives me what i typed (the grabage) and a job number and informs me that the job is stopped (as if a typed a real command that takes a lot of time to run and i am suspending it).
This behavior only happens in BASH, for when i switch to sh nothing of this happens.
Does anybody have any clue why does BASH behave like this? it is a fresh install by the way, haven't changed any parameters or settings.

Thanks
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

bash: cron-config: command not found - PLEASE HELP ME!!

Hello All, I have installed Cygwin on Windows XP and working with some Shell scripting work, I have needed to schedule my script using the cornetab and whatever commands such as "cron", "cron-config" are not working in my cygwin shell, I re-installed the Cygwin but the same problem is with... (2 Replies)
Discussion started by: sriya
2 Replies

2. Shell Programming and Scripting

#!/bin/bash and #1bin/sh command not found error on mac osx terminal/shell script

i am having a weird error on mac os x running some shell scripts. i am a complete newbie at this and this question concerns 2 scripts. one of which a friend of mine wrote (videochecker.sh) a couple weeks ago and it's been running fine on another machine. then last week i wrote capture.sh and it... (2 Replies)
Discussion started by: danpaluska
2 Replies

3. Shell Programming and Scripting

bash syntax error: command not found

I am trying to create a shell that asks the user to enter their name, and compare it to my own by saying we have the same name or saying my name and that they have a nice name too. Here is my script... #!/bin/bash-x echo "Enter your name". read name if then echo "My name is Adam too"... (1 Reply)
Discussion started by: amaxey45
1 Replies

4. Shell Programming and Scripting

rm:command not found in linux Bash shell script

Hi All, Linux lxs3er06 2.6.9-67.ELsmp #1 SMP Wed Nov 7 13:58:04 EST 2007 i686 i686 i386 GNU/Linux Issue: While executing shell scripts in bash shell, following error messages are thrown: rm:command not found On doing little investigation, I added '/bin' to $PATH and on doing echo... (9 Replies)
Discussion started by: a1_win
9 Replies

5. Shell Programming and Scripting

bash:vi:command not found

I downloaded and installed "Cygwin yesterday onto my PC running Windows XP. When I tried to type "vi" in Cygwin's window, I got the following message bash: vi: Command not found What shud i do inorder to get into vi editor Thanks (10 Replies)
Discussion started by: bobby1015
10 Replies

6. Shell Programming and Scripting

bash: <command nm> command not found

I created a script that I need to run from time to time, but get this error message. To get it working again I run this command from time to time: export PATH="$PATH:~/scripts" I put all my automated scripts in the /scripts directory and would like to run my scripts from any directory... (5 Replies)
Discussion started by: catalinawinemxr
5 Replies

7. UNIX for Advanced & Expert Users

Bash : While Loop behavior

Good Morning I think there may be something I dont understand fully. The following code works well, but I dont like the set domen method. #!/bin/bash # domen="y" while do echo " M A I N - M E N U" echo "1. Contents of /etc/passwd" echo "2. List of users currently logged" echo... (10 Replies)
Discussion started by: popeye
10 Replies

8. Shell Programming and Scripting

Command not found, but using function in bash

In the bash below, if the answer is "y" then goto function remove. If the answer is "n" then goto the id variable line (where the date is inputted). However, I am getting command remove not found, but remove is a function not an command. I must have the syntax incorrect? Thank you :). ... (3 Replies)
Discussion started by: cmccabe
3 Replies

9. Red Hat

-bash: sendmail: command not found

Hello Experts, I have been trying to send a test mail in our linux server with sendmail command.But I am getting command not found error message. -->when I tried whether sendmail installed or not with the command rpm -qa sendmail* I got the below, sendmail-cf-8.14.4-8.el6.noarch... (26 Replies)
Discussion started by: Devipriya Ch
26 Replies

10. Shell Programming and Scripting

Different behavior between bash shell and bash script for cmd

So I'm trying to pass certain json elements as env vars and use them later on in a script. Sample json: JSON='{ "Element1": "file-123456", "Element2": "Name, of, company written in, a very weird way", "Element3": "path/to/some/file.txt", }' (part of the) script: for s... (5 Replies)
Discussion started by: da1
5 Replies
PHONE(1)						      General Commands Manual							  PHONE(1)

NAME
phone - communicate with other users in real-time SYNOPSIS
phone [ user@host [tty] ] DESCRIPTION
Phone allows for two or more people to interact in a conversation across a machine or network, providing a form of conference calling. Each participant has a window in which to type. The first line of each window is a header showing who is in the window, like: ---- root@cory on console (Commodore Cory) -------------- The login name and tty are automatically determined, and the real name is taken from the password file, which may be overridden by setting the NAME environment variable (see csh(1) for further details.) Users may join or leave a conversation at any point in time, and the win- dows will be automatically resized and redrawn. USAGE
When you are being paged by another person, a message like this will appear on your screen: Message from the Telephone_Operator@host at time ... phone: connection requested by user@host phone: respond with "phone user@host" You may answer the phone simply by typing "phone", which will answer the pending call, and connect you directly. Phone has two modes, much like the vi editor. These two modes are called conversation and command modes, and are toggled through the escape (<esc>) and return (<ret>) keys. When in the conversation mode, anything typed on the keyboard is sent to everyone in the current conversation. This is the default mode. The command mode is used to execute commands, and is entered by pressing the escape key. When in this mode, phone will clear the bottom line of the screen and print the prompt "Command>". At this point anything typed in is added to the command buffer, and will be executed when the return key is pressed. To exit command mode without executing the acommand, press the escape key a second time. To ivite another user to join the current conversation from within phone, enter command mode by pressing the escape key, then type call user@host followed by the <return> key. The user will receive a message like the one shown above if he is logged in. The host part of the name may be omitted if the both you and the other person are on the same machine. Phone also allows a user to execute shell commands inside his window with any keyboard input being fed to the process. The program's out- put is sent to all users in the conversation. A shell command is executed within phone through the use of the run or ! command. An exam- ple of this is: run adb a.out core to run the adb command with the arguments a.out and core. Note that tilde expansion (ie. ~user) is done by phone, but wildcarding, piping, and i/o redirection are performed by the user's shell. It is unlikely that anyone actually cares, of course. Also, the use of visually- oriented programs such as vi and rogue is not recommended, as this usually results in strange and unpredictable things happening. If your terminal goes up in a puff of smoke, you were warned. To find about the other commands available with phone, type help or ? in command mode. You can allow or disallow phone messages to your terminal through the use of the mesg command. When you first log on, messages are enabled. BUGS
Csh is unhappy being fed through pipes, but it's a dumb program anyway. The manual page is horrendous at best. Please send any problems, questions, or suggestions to the author. AUTHOR
Jonathan C. Broome (broome@ucb-vax.berkeley.edu) The original user interface is borrowed from a previous program (also called phone) posted to the network in late 1984, author unknown. FILES
/etc/hosts to find the recipient's machine /etc/utmp to find the recipient's tty /etc/passwd to find each user's real name SEE ALSO
mail(1), mesg(1), talk(1), who(1), write(1) 4.2 Berkeley Distribution PHONE(1)
All times are GMT -4. The time now is 02:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy