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
ADVERTISEMENT
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
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 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
Feb 8, 2011
Everything works except on Fedora port 110 cannot be opened no matter how hard we try, we run REH (Redhat Linux) on a colocated server, now we run Fedora in a cloud
View 6 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
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
Mar 21, 2009
Yes, another newbie question. Just loaded and updated FC 10. Everything works great with dhcp. Tried to setup static ip to learn more about how to set it up and nothing seems to work. I'm connected to DSL via a router when I ifconfig I get:(basic stuff)inet addr: 192.168.1.7 Bcast: 192.168.1.255 Mask: 255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
I have also tried default gateway 192.168.1.255 and 192.168.1.254.Most of what I have tried above has come from linux websites and faq's.Keeping in mind I am worst than any new newbie you have ever worked with
View 13 Replies
View Related
Aug 29, 2010
I just want to be able to copy the files from a cd that is only compatible with windows to and new cd that is compatible with ubuntu
View 9 Replies
View Related
Jul 9, 2011
I am using a acer laptop with ubuntu 10.04
View 2 Replies
View Related
Oct 27, 2010
the codeigniter didn't work in my Fedora,the welcome page,when your codeigniter works,it will shows,but it doesn't appear.the same step,it can work in Windows. What's the problem?
View 4 Replies
View Related
Feb 4, 2010
Code:
This won't work in a script but it WILL work on the commandline...
Here is my output when I try the script:
Code:
Also, what is the at the end of the path in the error?
View 3 Replies
View Related
Sep 28, 2010
I have installed RHEL4 on my desktop machine . Done all the setting in /etc/pam.d and finally my rsh and rlogin works from my machine(rsh the same machine)
[root@linux tmp]# rsh 10.121.113.92
Last login: Tue Sep 28 18:00:22 from BLE
You have new mail.
[root@linux ~]#
[Code]....
View 7 Replies
View Related
Jul 3, 2010
I just found out that many Synaptics touchpads are capable of multi-touch and it's possible to do 2-finger scrolling and more.I have enabled this functionality in windows and I am sure now that the touchpad inside my laptop is capable of that.In Fedora 13 (64-bit), however, I was unable to make it working. I found a guide for Linux (Ubuntu) right here:URL... In Ubuntu it multitouch worked without problems after following the guide.
I first thought that I screwed something up on my Fedora and downloaded/ran live Fedora 13 64-bit disk to see if this trick will work with Fedora intact. After trying that guide in live Fedora CD I quickly found out that I couldn't enable multitouch the same way as on Ubuntu.I have no idea what could be different. Both Fedora and Ubuntu had Synaptics driver installed on live CDs (and on my installed Fedora too).
View 14 Replies
View Related
Jan 18, 2011
I'm using a crypt solution called DriveCrypt(for windows). But now I need a solution that does the same that DriveCrypt does but must to work in both Windows and Linux.Somebody know some software that works in Linux and Windows to encrypt folders?
View 2 Replies
View Related
Feb 7, 2011
I am looking for a locally hosted web based mail client that will work on Windows (Vista and up) as well as Linux. Right now, I use mutt (Cygwin mutt on Windows), but I was wondering if there was a simple web based client I could use. It does not need all of the fancy features of mutt, just the ability to send mail and allow me to browse my local mbox files.
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
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
Feb 17, 2009
I'm a newbie to Linux and FC10. I recently installed FC10 on my laptop which has the following config:
AMD64, 1gb DDR2 RAM, 60 GB HDD, DVD Drive and ATI Chipset.
The problem is FC10 locks up randomly and I have seen a couple of threads on this. I want to uninstall FC10. However I'm unable to uninstall / remove the partition. When I try to boot up my laptop using a Windows CD (planning to remove the linux partitions from the WINdows setup) I only see a blank screen, the DVD keeps on spinning but nothing happens. I have tested the windows xp cd on other machines and works fine.
View 2 Replies
View Related
Nov 16, 2009
I've been trying to get rcp command to work for my development environment but to no avail. I'm working on a Red Hat Linux server, and the rcp is meant to be used between Linux-Linux and Linux-Windows system. I've done some reading up and this is what I found:-
Quote:
Step 01: Turn on RCP service on UNIX Host
Turn on the RCP service on unix machine by using inetd:
1. Log on as root.
2. Edit the file /etc/Inetd.conf.
3. Uncomment the lines that start with shell and that start with exec.
4. Save the file.
5. Use ps -ef |grep inetd and determine inetd service pid. Send the Host User Profile (HUP) signal to inetd by using kill or by using pkill.
6. Run inetd again.
To turn on the RCP service by using xinetd:
1. Log on as root.
2. Edit the file /etc/Xinetd.d/rsh. You may get another file based on your linux distrinution.
3. Change the line disable to no.
4. Save the file.
5. Use ps -ef |grep inetd and determine inetd service pid. Send the HUP signal to xinetd by using kill or by using pkill.
6. Run xinetd again.
Step 02: Set the security permissions
After turning on RCP services you must set the security permissions to allow the Windows host to connect to your computer.
1. Edit the file /etc/hosts.equiv. Based on your linux distribution this file may vary. You can get like /etc/hosts.allow.
2. In the file add a line that contains the name of your Windows host.
3. Add a second line that contains the name of your Windows host and the name of a user who can access the directory that you want to transfer. Separate the two elements with a tab character.
4. Save the file.
I noted that my Red Hat have xinetd BUT I don't have the rsh file in step (2). It says I may get another file but which file should I be looking for? As for Step 02, I did find hosts.allow and updated that and the hosts file itself. Besides that, I also use useradd to add a user to match up with the one in the other system since I've read that the rcp required both end to use the same user name.
View 5 Replies
View Related
Mar 18, 2010
I didn't get any responses to my question yesterday about grub with multiple disks
By "best," I don't mean with the most technical detail about each and every option. Instead, I'm looking for a guide that provides a step-by-step instructions about how to do some of the more common tasks, e.g.: configuring grub to work with MS Windows 7 and XP how to reinstall the MBR with grub after MS Windows' install program overwrites the MBR reinstalling the MBR from Fedora's LiveCD (without going through the whole install process) because I can't boot to my hard drive. configuring grub to work with multiple OS on separate hard drives
Again, I'm looking for a guide that starts with the basics about how to create a configuration file and write it to the MBR.
View 2 Replies
View Related
Sep 11, 2010
I've been using curl in a script of mine for a while on Ubuntu 9.10, without problems.
Ubuntu 9.10 got the following curl installed through apt-get:
ii curl 7.19.5-1ubuntu2 Get a file from an HTTP, HTTPS or FTP server
[code]....
View 1 Replies
View Related
May 20, 2011
When I ping a destination IP address, it responds. However, when I try to telnet or ftp or sftp to the same IP address, it does not connect.
I do not know the physical location of the machine.
View 11 Replies
View Related
Oct 5, 2010
I run Fedora 13 on my HP dv6000 Pavillion. I am looking for a way to remotely access my work station running Windows XP from my Fedora machine. Most of the information I found explained how to access a Linux box from a Windows environment, and the one place I found that showed the other way around was incomprehensible.
Our company servers run Windows XP, and we have successfully installed remote desktops on other laptops running Windows.I thought of running the remote desktop from a Virtual Machine Windows session, but it seems a cumbersome way to do it.
View 3 Replies
View Related