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


ADVERTISEMENT

General :: Cygwin - Myscript Command Not Found

Nov 8, 2009

But I just downloaded cygwin to my xp machine. Tried my first experimental script and created it one level directly below where cygwin put me by default. The script, named show two says:

#!/bin/bash
echo $1
echo $2

But bash apparently can't find it. The name of the script is showtwo, but I also tried naming it showtwo.sh; no dice.

View 8 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

Ubuntu Servers :: Nm Command Not Found?

Mar 9, 2010

Running Ubuntu 9.10 64bit server. Installed it as a minimal virtual machine. The 'nm' command does not exist in /usr/bin. Assuming this is because the nm command is not included in a minimal install. How can I install the nm command ?

View 2 Replies View Related

Ubuntu Servers :: EBox Cannot Connect - 'command Not Found'

Apr 28, 2010

I am using eBox at my Ubuntu Studio laptop to manage the manage server application configuration, but in the firefox browser, I put the Ubuntu server 9.10 ip address 192.168.122.1/ebox into the firefox, but firefox can not connect the server, but I saw my Ubuntu server icon in the network of the studio admin menu. and I put command sudo ebox at the command line of the server, but the server says 'command not found'

View 1 Replies View Related

Ubuntu Servers :: Not Found A Command To Monitor Cpu Usage

Jun 20, 2011

I'm monitoring all kind of things like ( Mem, network, cpu, IOPS,..) But still not found a command where i can see the CPU usage but in MHZ ( or Hz). Using top or looking into /proc/cpuinfo doesn't give me the info i want.

View 4 Replies View Related

Ubuntu Servers :: Can't Restart The Service - Apache2: Command Not Found

Sep 5, 2010

I just installed apache2 and i can't restart the service, i get: Code: sudo: /etc/init.d/apache2: command not found

View 6 Replies View Related

Ubuntu Servers :: Bash In 10.04 Server - Every Empty Line In The Script Results In "command Not Found"

Oct 8, 2010

Bash acts weird in 10.04 server. Whenever I try to run .sh scripts, every empty line in the script results in "command not found". Then on even simple scripts I get syntax errors, but the same exact scripts work on my 9.10 desktop installation. There's also another problem, I'm not really sure if it's bash-related. After setting the proxy using

[Code]...

View 5 Replies View Related

OpenSUSE Install :: Installed Program Not Found - Kmess: Command Not Found

Oct 1, 2010

I installed a program with Yast (Kmess), but when I try to run it, bash gives me back this message:

Code: kmess: command not found I checked into Yast and it seems to be installed correctly!

View 9 Replies View Related

Ubuntu Servers :: 9.10 2nd Ethernet PCIe Adapter Found Then Not Found?

Jan 24, 2010

During install of 9.10 server, both ethernet adapters were found. One is built-in to the motherboard, the second is on a PCIe slot. Selected the on-board adapter for eth0 during install, set fixed IP on the web, connected, updated, etc. w/ no problems. The second adapter is for the LAN.BUT, on first and subsequent reboots after installation complete the second adapter is not detected at all, as if it were not even plugged into the PCI or the driver not loaded. This happens on either of two slots, with two different adapters, Intel or Netgear, both pretty recent, and both of which are detected and work in a different box. 'Ethtool eth1' says device not found.This is a fairly recent motherboard 3N78EM).Since the adapter was found during installation I'm assuming that the problem is not with not the board. I've built several server systems with two or three ethernet adapters and have never run into this situation.

View 3 Replies View Related

General :: Created A Script File Named Myscript.sh?

Apr 17, 2010

i created a script file named myscript.shi ran this by typing sh myscript.sh and i got my outputbut,when i tried to execute by typing ./myscript.sh i received permission denied errori gave permission as chmod 777 myscript.shthen i executed by typing ./myscript.sh . It worked fineso i wanted to know whether using sh and ./ with permissions are same.. ?or did it work for only this.. are there any differences

View 1 Replies View Related

Server :: File Myscript Runs On Every Tuesday Of April Month.

Apr 18, 2011

I have a cron job like this.

04 07 17 04 02 sh -x myscript

this means the file myscript should be executed when the server date comes to Apr 17 on Tuesday at 07 04 am.

But the file myscript runs on every tuesday of April month.

View 6 Replies View Related

General :: Ubuntu 10.10 And Command Line Scripts - Error - Android: Command Not Found

Mar 26, 2011

I know my way around MS Windows much better, but I just don't feel right trying to program something for Android on a Microsoft operating system. I am interested in Android programming so I followed the instructions on [URL] to install the environment on my computer...

I just installed the JDK, SDK, Eclipse successfully (or I assume):

* When I get to Step 4 where I'm supposed to run 'android' it will not run. I get the error message "android: command not found" (I am definitely in the right directory).

** When I double-click it in nautilus, it opens up in gedit. I can set the permissions in nautilus (through the properties - Allow executing file as a program) and get it to work,

My system:

Intel i7
Ubuntu 10.10 Maverick Meerkat
android-sdk-linux-x86
eclipse 3.6.2

View 5 Replies View Related

Ubuntu :: Setup Command Not Found In 10.04 Command Prompt?

May 6, 2010

In Ubuntu 10.04 grub command prompt setup command does not exist for installing grub.I am trying to recover my Feodra12 OS.Did anyone find alternate command for setup in grub command line for Ubuntu 10.04 ?

View 2 Replies View Related

General :: Access The Dbxml From The Command Line And It Returns Command Not Found?

Apr 30, 2011

I installed the Berkeley DB on the Ubuntu server and tried to access the dbxml from the command line and it returns command not found

path/to/dir/dbxml-2.5.16/install/bin$dbxml
-bash" dbxml: command not found

Can someone point me in the right direction

View 1 Replies View Related

Ubuntu :: Whenever Use 'let' Command It Gives An Error 'command Not Found'?

Jan 10, 2010

I am a linux newbie, and recently started shell programming. whenever I use 'let' command it gives me an error 'command not found'. I am using ubuntu 9.10 with bash.

View 5 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

Ubuntu :: No Launcher Found In Applications Menu - "projectM-pulseaudio" Returns "command Not Found"

Nov 19, 2010

I'm trying to install the projectM visualizer and I'm running into some problems. Initially, I tried to install it by running "sudo apt-get install libvisual-projectm", which seemed to work... except there's no launcher for it in my Applications menu and "projectM-pulseaudio" returns "command not found". From there, I decided to try to build it myself, by following this guide (<- link). It went well until the "make" command, which returns the following error:

[Code]....

View 1 Replies View Related

Fedora Servers :: When Browsing The Folder , Its Erroring (404 Not Found) Folder Is Not Found On The Server ?

Feb 13, 2009

I have created a folder including some html link pages in /test/htlink . Now I want to create a soft link of that folder as htlink -> /test/htlink in /var/www/html . Now when I m browsing the folder , its erroring (404 Not Found) folder is not found on the server . I have given 777 permission on every file-folder in /test . No firewall & no SELINUX .

*** I want to browse the folder ***

View 3 Replies View Related

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 :: 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 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

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

General :: Using One Command "make UImage" Getting Error 127 Command Not Found?

Feb 23, 2010

I am doing some embeded linux work in ARM 9263.So I need to make a image for that board.But when I using one command "make uImage" I am getting the following error.

make: arm-linux-gcc: Command not found
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
HOSTCC scripts/basic/fixdep
code....

View 4 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

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

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

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







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