General :: Bash Will Not Allow To Enter Tcsh?

Apr 1, 2011

I'm so lost it's difficult to even pose my question. My default shell is bash; and I'd like [actually, required to] have the ability to type csh and enter the TC shell...but it's not working at all. All the changes I made to the ~/.bashrc file work great, but I can't seem to access tcsh to see if the commands in my ~/.tcshrc file work.

When I type "csh", my old PS1 [prompt] displays and I have to type "exit" to get back to the one in the bashrc file and then type "bye" to log out off the system.

I've spent the last 3 days researching this, but every article/blog/site discusses permanently changing my log in...NOT going to happen.

View 7 Replies


ADVERTISEMENT

General :: Run Tcsh But Bash Started Instead

Jul 23, 2010

I tried to start a tcsh on my Fedora 7 (default shell is bash)

[ss@ssvm ~]$ tcsh
[ss@ssvm ~]$ echo $SHELL
/bin/bash

As you see, another bash shell started.

I looked at the tcsh file:

[ss@ssvm ~]$ ll /bin/tcsh
-rwxr-xr-x 1 root root 345348 2007-02-26 23:58 /bin/tcsh
[ss@ssvm ~]$ ll /bin/csh
lrwxrwxrwx 1 root root 4 2010-03-07 13:13 /bin/csh -> tcsh

It is not a link (but csh is). I don't understand why this is happening.

View 3 Replies View Related

General :: Can't Connect To Display After Switching From Bash To Tcsh After Login

Aug 11, 2010

Can't seem to use tcsh as my login shell under CentOS 5 as I used to (if I specify /bin/tcsh as my start-up shell, the windowing system doesn't come up), so am logging in under bash then switching to tcsh on top of that, but it won't allow display access from tcsh for my programs. Gives the "cannot connect to display" error that usually xhost + is the solution for, but xhost doesn't help in this case (won't even run under tcsh, says unable to open display "0.0"). $DISPLAY is set in .cshrc. Must be something simple, but can't seem to find a direction to head?

View 2 Replies View Related

Fedora :: Stuck With Bash Shell / Changing Default Shell To Tcsh?

Mar 14, 2010

I want to change my default shell to tcsh. I used

Code:
usermod -s /bin/tcsh username
command as given at url

But if I open a new shell, it is still a bash shell.

How do I make my default shell as tcsh?

View 6 Replies View Related

General :: Unable To Enter Password In Terminal To Enter As Root

Jun 11, 2010

Succeeded in connecting to internet using my wll phone. I can now connect using 'wvdial' command in root terminal. But I want to connect through terminal. I tried 'sudo wvdial' command. Then I am asked for my password. But I cannot type my password there. When I type, nothing appears on the terminal window. Ofcourse there's no problem with my keyboard.

View 5 Replies View Related

Debian Programming :: How To Do Code Bash Script To Run Su And Enter Password

Sep 15, 2014

Whats the bash script for like, how synaptic package manager runs ..

When you run synaptic it ask for root password ..

How do I do this in bash script?

View 5 Replies View Related

General :: TCSH - How To Disable Spelling Correction Of Command

Aug 18, 2010

Recently, when we updated our OS, we got a new tcsh feature enabled by default. Whenever I type a command that tcsh doesn't recognize, I get an annoying spelling correction like:
% cats
CORRECT>cast (y|n|e|a)?

I want to disable this feature and allow misspellings to error out like:
% cats
cats: Command not found.
Is my enter key somehow getting re-bound? What could be causing this?

View 1 Replies View Related

Programming :: Bash - Read User Input: URLs Without The Enter Key Stroke?

Sep 23, 2010

Here's a challenge I've been struggling for months with:

I have a bash script that reads URL addresses of our internal server and then executes some test commands on them. Something like this:

Code:
read -p "Enter URL: " url
sh execute-what-ever-to $url

After copy-pasting the URL the user taps the enter key and the script proceeds, but here comes the tricky part: I want this to work without the need to press the enter key after copy-pasting the URL.

"read -n" does not work in this case, as the URLs vary greatly in length. However, the URLs always end to the same string. They could be like "http://url1/END", "http://url2/END" and so on. So this ending string "END" could be theoretically used to recognize that the whole URL has been pasted.

View 2 Replies View Related

General :: Find The TCSH Shell And Gzip Version Number?

Apr 7, 2010

I need to find TCSH shell and gzip version number by running a acript on several boxes through ssh. How can i do that? I made a script for tcsh but it is not working by ssh , it only works on my box . I dont know from where to find the gzip version info.

View 5 Replies View Related

General :: TCSH Script Works On Windows 7 Does Not Work On Fedora

Aug 5, 2011

I have written a tcsh script on a Windows 7 machine in order to perform a task on a machine running Fedora. After writing the script, I used cygwin to run it on the Windows 7 machine, and it worked exactly as intended. Then I moved it to the Fedora machine, and I got the following error:

Code:
While: badly formed number

Here is the beginning of the script:

Code:
#!/bin/tcsh -f
##
## Script to automate loading of A2 DAQ systems
##
##

[Code]....

Before the error, I see the string "This program will attempt to automate the DAQ Control process", but not "Please enter the number of the current or most recently completed run: ", so clearly the problem begins at the first "while"

View 3 Replies View Related

Ubuntu :: Finding A Bash Script Which Will Prompt To Enter Host And Username At Initial Boot

Feb 17, 2011

I am working on different versions of Ubuntu & I looking for a script that will prompt the user to enter the host name & user name that he wanted for that system at initial boot up.

View 2 Replies View Related

Fedora :: Terminal Won't Let Enter Password After Enter Sudo Command ?

Jan 12, 2011

I am pasting sudo commands without problems as a user (ales in my case) and then immediately the ask the user password.

The keyboard seems to be dead, no keys work, not allowing me to enter the password.

View 6 Replies View Related

Ubuntu :: TCSH - Running Executable After Compilation

Jun 12, 2010

I'm new with linux, and I'm wondering why in order to run executable after compilation I have to type
>"./executableName" I want it to type it just like
>"executableName" (with no "./")
I don't know if this matters but I'm using tcsh for my shell...

View 6 Replies View Related

Programming :: Tcsh: Pushd + Popd In One Function

Jul 3, 2010

I really like pushd and popd, but I don't like their long spellings, so I made aliases: 'x' runs pushd and 'xx' runs popd. That's not bad, but I wish I could improve them in the following way:

x => If followed by a path, 'pushd' (and cd to) that path. If not given any arguments, run 'popd'.

xx => 'cd -'

The problem is implementing that pushd/popd in one command trick. Since tcsh does not have functions, I've been struggling hard to come with a solution. I made a script, and it works, but it only works within the context of the script. The script exits and not only am I still sitting in the same directory, but also my dirstack is emptied.

A similar problem: make 'cdd'. I remember using that program in DOS a long time ago. I would run 'cdd /path/to/directory' and cd to that path if it existed, or create it and cd to it if it didn't exist. Again, I made a script, but that only works within the context of the script, not my current shell. So the new dir is created, but my shell won't cd into it.

View 1 Replies View Related

Slackware :: Tcsh - Unknown Colorls Variable 'ca'

Jul 27, 2010

I have been using tcsh for quite some time, both on a laptop running Ubuntu and a remote server running Slackware 11. No problem whatsoever. Now I am compiling and installing tcsh on a brand new Slackware 13 box and when I run tcsh I get this error:

Unknown colorls variable 'ca'

or

Unknown colorls variable 'hl'

I didn't have this problem in Slackware 11, why is it happening now?

So I tried the official Slackware package for tcsh. It works, but it's tcsh 6.15.00. Tcsh is at 6.17.00, which runs fine on my Slackware 11 box.

I investigated the problem on Google and all reports seem to refer to Fedora, some to Mandriva. Many of the threads, across several forums and sites, point to this LinuxQuestions thread:

[URL]

View 2 Replies View Related

Ubuntu Servers :: Tcsh And Myscript: Command Not Found

Feb 7, 2011

I just recently installed Ubuntu for our server, and I had a question about using tcsh. I'm trying to run a script of commands and the first line of my script is: Quote: #! /bin/tcsh -f I chmod +x my script, but when I type the name of my script at the command line i get this message: Quote: myscript: Command not found. the only way my script will work is if I type: Quote: tcsh myscript

Only then, will myscript execute its set of commands. I would like to be able to type the name of scripts without having to type tcsh at the beginning, each time. Is there a way to do that?

View 5 Replies View Related

Software :: Emerged Tcsh And Ran The Script / CUPS Does Not See The Filter?

Jun 27, 2010

I'm trying to install a Brother MFC425CN printer on my Gentoo system. I have obtained the files needed from Brother and extracted the payload.

The script for creating the filter (endless echos) is a csh script, so I emerged tcsh and ran the script. No luck. CUPS does not see the filter, even though it is present and has the same owner, group, and permissions that work on my other gentoo system.

When I print a test page the log file says

Code:
E [27/Jun/2010:09:36:03 +0800] PID 3912 (/usr/libexec/cups/filter/brlpdwrapperMFC210C) stopped with status 22!
D [27/Jun/2010:09:36:03 +0800] [Job 8] /usr/libexec/cups/filter/brlpdwrapperMFC210C: No such file or directory
It's been too long since I got it working on the other system, and if I made notes they are lost...

View 1 Replies View Related

Programming :: File Size Not Properly Checked In A Tcsh Script.

May 7, 2011

The check on the size of a file I perform in a tcsh script does not work. The size of my file is the following :

ls -l File.gpg
-rw-r--r-- 1 xuo users 3354637392 2011-05-07 15:31 File.gpg

The script is the following :

#!/bin/tcsh -f
set listOfEncryptFiles = `ls *.gpg`
foreach file ($listOfEncryptFiles)
set fileSize = `stat -c %s $file`
echo $fileSize

[Code]....

View 6 Replies View Related

Programming :: Send Message To Display And Get Feedback [tcsh Script]?

Jun 23, 2011

I want to write script at "tcsh" that send message to user ($DISPLAY) and let him to answer me.below command line that open xterm at any user displayQuote:setenv LESS "P'HIT q TO QUIT'"/usr/bin/xterm -display $USER_DISPLAY -geometry 60x7 +sb -rv -e less ./MESSAGE_FILEpressing "q" will close the window.there is any way to press "r" ->
new window will open ->user write a feedback ->message will send back to sender.

View 11 Replies View Related

General :: Write A Literal Bash Command In A Bash File?

Nov 29, 2010

I create a bash script that writes another bash file. But in the generated bash file I want to write a bash command in the file and not executing it.Here's my bash file:

Code:
#!/bin/bash
cat > ~/generateGridmix2data.sh << END

[code]...

View 6 Replies View Related

General :: Running Bash But Common Bash Commands Not Working?

Jul 17, 2010

below are the details of my system. I have bash as my current shell, some really common commands aren't working.

Do I need to do a re-installation of bash? Or how do I install a selection of bash commands which I need? (for example a subset of [URL])

Code:
root@sdptfw:~ # uname -a
Linux sdptfw.sdpt.co.za 2.4.36 #1 Tue Jul 22 13:13:24 GMT 2008 i686 i686 i386 GNU/Linux
root@sdptfw:~ # echo $SHELL$
/bin/bash$

[Code]....

View 13 Replies View Related

General :: How To Enter Value On A Specific Line

Feb 18, 2011

I am starting to learn shell programming, but I couldn't accomplish a simple thing that can be done with sed, awk.Its simple, I am dynamically getting an IP number, and a rule name, that I need to save them on a single file on a specific line number.I found how to enter a value on a specific line, but couldn't understand how to enter the second value.

View 3 Replies View Related

General :: Enter To Desktop Through Terminal?

Aug 28, 2010

i have problem in terminal (Ubuntu 9.10)

how can i enter desktop from terminal ? i typed " Cd desktop " but the result is Cd : command not found

View 7 Replies View Related

General :: Ksshaskpass - Don't Enter Password Always

Nov 5, 2010

i installed ssh on my fedora 13 running KDE and checkout some svn repositories via svn+ssh. Everytime when access my working copy, i am asked for password by ksshaskpass dialog box. I dont want to enter my password always. Can i disable it?

View 1 Replies View Related

General :: Re-enter Interactive Mode After Ctrl-z?

Jun 14, 2011

In interactive mode (in Octave, gnuplot, R, etc.) I occasionally press Control + z by mistake. This pauses the program and kicks me back to the terminal.Is it possible to re-enter the original interactive mode (with all the stored variables)?

To reproduce:

~> octave
octave:1> a = [1:10];
octave:2> ^Z

[code].....

How can I recover my session with the variable a defined?

View 2 Replies View Related

General :: Alias Cd Cmd Way Whensover Enter Any Directory

Mar 12, 2010

the problem is that i want to alias my cd cmd in such a way that whensover i enter any directory, a ls cmd i automatically performed. i tried ' alias cd='cd $1;ls' , but it is not working.

View 5 Replies View Related

General :: Get The DSL Logo And Press Enter To Boot?

Sep 4, 2010

I have downloaded the Damm small linux iso ,and burned the image to the CD with infrarecorder .But when i try to boot it from the CD ,I get the DSL logo and press enter to boot ,then the computer freezes with two small penguins in the top left corner of the screen.

View 7 Replies View Related

General :: Send Enter Command To Screen ?

Apr 5, 2011

I'm currently writing a C++ application to manage some screen functions in Debian(server).

However this issue have bothered me for 2 days now...

What I want to do is to send a command to an attached screen which is running.

Used the following command: Code: screen -S screenwindow So I send a command with the -X parameter, which works just fine... Code: screen -S screenwindow -X stuff yes The command I want to send is "yes" and it does appear in my screen window when I attach it.

But the problem is that I need it to submit it... well I need to press "enter" and I've been looking everywhere on how to do that.

Because right now it hangs on a line like this: Code: Something here, do you want bla bla: yes Obviously I could just press enter myself, but the problem is that it's running as a deamon and but it is supposed to do this all by itself .

So are there any way I can submit it?

View 4 Replies View Related

General :: Enter Task In Sleep Mode?

Jun 26, 2010

How would i place a task in sleep mode then restart it?

View 1 Replies View Related

General :: Nm-applet Asks To Enter Password

Mar 26, 2010

I use fedora 12. I am facing this problem. Not exactly a problem but I can sure use a work around.

I usually connect to wireless network. The connection is automatic so whenever the connection goes down, it is automatically restored.

But sometimes, the connection goes down, nm-applet asks me to enter the password and will not proceed until I have entered the password. I have observed that this usually happens when the request to connect takes a long time or the wifi router does not respond immediately.

Is there way to change this behaviour? I want nm-applet to keep trying until its connected and not ask me for a password. This way I can be sure that my laptop is always connected and does not need my intervention.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved