Using zstyle, I can create a custom warning for messages and such, but looking into the man pages and all, I do not see anything for customizing actual error messages in ZSH, as such:
Code:
casper@ltp01[/home/casper][19:14] - asdfsdafasdfjsdf
zsh: command not found: asdfsdafasdfjsdf
I have written the following script in my linux server to add users for LDAP database.But i can't able to run this.
The script is as following
#!/bin/bash echo "Mention the username which you want to convert LDIF format" read username if ["$username" -e "/ldiffile/passwd"]; then echo "Username already exists" else cat /etc/passwd | grep -i "$username" >> /ldiffile/passwd fi The output which i got : . ldapadd.sh Mention the username which you want to convert LDIF format yal2361 -bash: [yal2361: command not found
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,
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.
I have set up an ssh server for myself and a friend to work on a project. It is configured to use password authentication, but I am somewhat uncomfortable giving him my password to get the files. I was wondering if there was any way to have a script that logs him on, filling in the password at the prompt. So that when "ssh xxxx@xxxxx" is run, the script fills in the prompt for the password rather than him filling it in.Of course he still could find the file within the script before it is run, but knowing his somewhat ADD nature it seems unlikely.
Not sure exactly how to explain it. My command prompt screens are appearing messed up.the resolution appears to have squeezed the command prompt vertically to just a few pixes at the top of the screen. The command prompt appears to also repeat several times horizontally. This is also the case with boot-up.I'm still in the experimental phases of learning how linux works, messing with GDM, and installing/installing some boot screen tweaks here and there to see what would happen.I can't quite remember exactly WHAT I did.
I have the following function, and it appears to set the var correctly, but then tries and executes the line as a command. Anyone know how to keep it from doing that?
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....
I recently installed Fedora 14 from KDE live CD . everything is working excellent except when I tried to do lsmod today, I got lsmod:command not found error.I checked and found that PATH did have /sbin and /sbin/lsmod does exist. But /sbin/lsmod points to /bin/lsmod (which does not exist)I did whatprovides on lsmod and found module-init-tools-3.11.1-2.fc13.i686 as the package.
I am scheduling a command for a specific time every day. Linux crontab format which I am using :- MIN HOUR DOM MON DOW CMD 30 08 10 06 * /home/mach/script.sh Some presetting is required?
i am trying to use ttcp for a benchmarking excercise, i have download the ttcp onto linux machine and compiled it using the c compiler but when i try running the test i get error saying [command not found].those anyone know what seems to be the problem and how i might be able to sort that out.
I have an "error", its not really and error, every time I open the terminal, it shows this: Reading: command not found Building: command not found Reading: command not found *****@****-****:~$
i have a site where I need to run a couple of php scripts every day..therefore I was thinking to setup a cronjob to do this. Unfortunately I get a whole bunch of errors trying to do so.
I can execute the php scripts via a command line without problem, one example would be
I am completely new to linux and am trying to run a Fortran program for class. I typed in "make C=R" and it ran through a long list of things and then came up with that error.
I am attempting to create a script for Grid job submissions. I have most of it completed but when testing I've run into some problems.
How it works is that I have 2 wrapper files, one is the top of the script, the other the bottom, the original script imports commands for the middle.
Basically this is what is to happen: cat script-start.sh >> workerscript.sh echo commands >> workerscript.sh cat script-end.sh >> workerscript.sh
workerscript.sh gets created with no problems but when it is run I get: export: command not found
I think that the new script is not calling bash which gives the problem. I don't know how to fix the problem though because I have the shell set in the script-start.sh.
#!/bin/sh - tried /bin/bash, same result export PROJECT=/...... export PROJSOURCE=/......
I have a guy in my office who was using an old version of ubuntu and he tried upgrading to 10 but now he's getting grub error 17. I Google this and everyone suggests reinstalling grub starting with opening a shell and typing 'sudo grub'.
However, I get 'command not found' in response to that. I've tried looking for the location of grub so I could try 'sudo /sbin/grub' and such, but I don't see it anywhere.
Also, I'm using a version 9.10 Live CD at the moment because I can't find out how to disable the drmraid option on the version 10 CD (necessary to detect the hard drives which, although they are on a raid controller are not configured as an array but separate drives).
I am looking for gcc installation in CentOS 5.4. I cannot use yum install since not connected to internet. I tried to do sudo apt-get install build-essential but received the following error: sudo: apt-get: command not found How to install gcc in my Linix machine?
I have recently installed 9.10. Under 7.04 thru 9.04 I have a bash script and php script that I used to send announcements about club events.When I tried it today, I get errors. Here us the command line script I use to call the php mail handling script.
find /var/spool/mqueue -group abc -exec rm -rf {} ;Using above command , I delete all the files belong to group abc.Now the problem i face is that the this command gives error that some files are missing . And this error occur because after creating list of files, it pass that list to rm -rf but till that time sendmail process queue and some of files disapper from /var/spool/mqueue.
I wonder if there is anyway to make a user-defined bash shell function global, meaning the function can be use in any bash shell scripts, interactively or not. This is what I attempted:
I am using rhel5 with ip 192.168.0.254.i am using rhel on vmware 7. when i run links 192.168.0.254 then i got error "bash : links : command not found" i want to know why this error is showing? when i use red hat without vmware then there is no problem.
I am trying to run a script called install.sh as follows: I get a jar file, and extract it using the command: unzip filename.jar -D path/to/files then I navigate to that directory where I extracted the files, and run the command: sh install.sh (where install.sh is one of the files that has been extracted in that directory using the above unzip command.) running this command gives me an error:'nstall.sh: command not found.' among other errors in the script ( from that portion of the script that should not even be executed, which is really weird). However, instead of unzipping the jar file, if I just copied the same install.sh file to that folder, and ran the 'sh install.sh' command, the script runs fine.