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
ADVERTISEMENT
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
View Related
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
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
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
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
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
Dec 14, 2010
I recently installed KDE in my ubuntu 10.10. To access KDE, I want to use
startx /usr/bin/startkdeBut using it disables sound in KDE (Sound is working fine in GNOME). It doesn't sound for anything like login sound, totem, mplayer or any other playerBut when I press Alt+Ctrl+F1 to change to virtual console, the playback resumes from where it was in time and when coming back Alt+Ctrl+F7 and the time in totem (or any other player) doesn't move. While log out also it doesn't play logout sound and doesn't logout, so I have to press Ctrl+Alt+F1 so that logout sound play then it exits.When starting KDE by kdm or gdm, the sound works normally. But I don't want to login again using kdm or gdm and not to use root user to start kdm or gdm.I don't know what is the difference between when KDE is started by startx or by kdm/gdm where the same user login in kdm/gdm as that for startx
View 2 Replies
View Related
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
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
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
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
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
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
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
Jul 5, 2011
I'm trying to ensure an app starts on boot up but after MySQL has been started. I can't however locate where MySQL is being started. If I do a chkconfig, it says MySQL is off, yet I can readily access my databases with phpmyadmin.If I look at my boot log, I can see it says MySQL Server is started, right after Apache2 is started.In my rc5.d directory, I only see a symbolic link for Apache2 but nothing for MySQL. The startup script for MySQL appears in /etc/init.d.rc.local has got nothing in it but comments. So it appears to me like it's being run on startup, but not as a service. But I have next to no knowledge of Linux so don't put too much belief in that.I would have originally installed MySQL via apt-get.
View 1 Replies
View Related
Feb 28, 2011
My problem is that my fan will keep running quite quickly once started. It will keep running till reboot independently of CPU usage and temperature. To check the temperature I installed lm-sensors. Output of temperature related commands and kernel version are below. Shouldnt they all give the temperature? My machine is a Toshiba Satellite pro L300. Eg. at the moment my fan is running quite quickly although CPU usage is 3-4% and the temperature according to lm-sensors is approximately 40-45 degrees Celcius.
Code:
:~$ acpi --thermal
Battery 0: Full, 100%
Thermal 0: ok, 0.0 degrees C
:~$ cat /proc/acpi/thermal_zone/THRM/temperature
[Code].....
View 4 Replies
View Related
Jun 8, 2010
there's a little app called F.Lux that sets your screen temperature based on the time of day. The Linux version is a little spartan with just a console interface but it works perfectly well. The question I have is where can I invoke it so that it starts up after X has started?
View 4 Replies
View Related
Apr 16, 2011
I am a Windows user. I work as a web developer. I would like to start using Linux, slowly perhaps as my main OS. I would like to know more abt Linux, like what Anti-Virus/Firewalls are recommended (if needed?) abit more abt the shell commands. And in general, how do what I do in Windows map to Linux
View 5 Replies
View Related
Feb 19, 2010
Consider I am logged on a machine via SSH.I execute a process having "&" at the end from a shell - I run the process in background.Then I log off from the machine.I am just wondering if it is possible to bring that process to front after I log onto the machine again?I would like to check the output of my running process.Or is there any different approach to have a process running in background and to be able to view its output (i.e. printf)
View 3 Replies
View Related
Mar 19, 2010
Centos 5.4 64bitWould like to know when a particular process was started.1.Quote:ll -d /proc/4014/dr-xr-xr-x 5 mysql mysql 0 Nov 28 07:34 /proc/4014/2.Quote:ps -o pid,lstart -p 4014 PIDSTARTED 4014 Tue Nov 17 23:10:13 20091) Which one should I consider?2) why do both have such a difference?
View 1 Replies
View Related
Aug 26, 2009
I've run into what is apparently an age-old SSH problem, which is that killing an ssh client process does not kill the remote process (unlike e.g. rsh). There seem to be lots of patches and a couple of open bugs on this topic that have been there for about 10 years or so... Having convinced myself by googling that there is no easy solution, I'm now looking for a workaround of some sort. I'm writing a testing framework so the processes I'm running remotely could be anything at all, i.e. I only have control of the client side. Also the remote processes are of course highly unstable and I need to be able to terminate them if they hang. ssh -t won't work for me as I don't necessarily have a terminal. Finding the remote process ID would be enough so I can do ssh <machine> kill <pid>, but I don't see any way to do that either. Just using ps, pgrep etc seems to suffer from not being able to uniquely identify the correct process, and killing the wrong process is of course very bad.
View 14 Replies
View Related
Apr 14, 2011
I have a laptop with SuSE 11.2 installed, worked all like a charm.Then the problems started :I lost my display (it is dark, you can see very very faint the desktop from time to time)Clearly a hardware problem.So, I attached an external screen. Only this shows nothing, cannot get it activated.Since the laptop automatically boots into our LAN, i just started it, and connected via SSH from an other computer.No problem i have a shell.Then I thought to be clever, and activated the pure-ftp demon, so I can download all interesting files to a new computer. I activated it with / as shared directory.After that, I could not boot the laptop anymore, it did not connect to the network.
After a lot of try-outs I finally managed to get the external screen working (only after GDM is started, i can see the workspace, nothing at boot time).Then I found out that the network would not start anymore, actually I could not even start yast or a su shell.After some investigation, I found that pure-ftp had changed the owner of all files in the / partition to ftp (and the group also to ftp)So, su has no access rights anymore to /etc/shadow, and thus cannot verify my root password anymore.Now i'm stuck. I can work as normal user on the old machine, but no network, the DVD wont write anymore and usb sticks don't open anymore.I cannot boot the system in single usermode, since then I have no screen.Has anybody here the brilliant idea I need to get the files out of this machine, without taking the disc out(would not know how to do that anyway).
View 7 Replies
View Related
Jul 20, 2010
I am trying to run valgrind tool findout memleak for a executable which is run from start_daemon process..
View 4 Replies
View Related
Apr 30, 2011
i have installed ubuntu 11.04 linux by wubi (windows 7 ultimate is the other operating system). after some logins it started disconnect from internet.
View 11 Replies
View Related
Dec 21, 2010
If you start a transmission then shutdown unintentionally, what happens to transmission? This hasn't happened recently, but the question sticks in my mind. I was downloading 2 files. I opened raw package which, at the time I didn't have BT or FDM or any other type of transmission at that point I shutdown system. I'm assuming it picked up after restarting computer. Anyway what I really want to know is if I only shutdown os and not the transmission, when does it actually stop?
View 3 Replies
View Related
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
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
Jul 13, 2010
I am using a script to start an application (with GUI, i.e. windows) in KDE. However, the window will always appear on the currently used desktop. I would like to define which desktop the application will appear to be able to just run in invisible in the background. How can I do this for KDE?
View 1 Replies
View Related
May 8, 2011
What is the first Matlab release that fully supports 64-bit? Is it 2010a? I've got 64-bit installations of Linux and Mac OS X, and want to make sure I install a copy of Matlab that takes full advantage of 64-bit and the resulting larger memory support.
View 1 Replies
View Related