Red Hat / Fedora :: Changing Shells - Illegal Variable Name Error

Jun 8, 2011

I changed shells for a user from bash to tcsh using this command... chsh user -s /bin/tcsh but when logging on via ssh under that user I get a "Illegal variable name" error. I type, echo $shell and it says, /bin/tcsh. I am curious what that Illegal variable name could be.

View 3 Replies


ADVERTISEMENT

Fedora :: Yum Update Gives Illegal Instruction Error

Aug 17, 2011

my firefox has been crashing since yesterday and when i tried to run yum update it gives me error: illegal instruction (core dumped)

View 7 Replies View Related

Networking :: Ntop Illegal Filter Error?

Aug 20, 2010

ntop installed on CentOS5 system running as squid using yum. Starting ntop on command line and not as daemon and gives error for illegal filter.

Code:
Fri Aug 20 14:10:12 2010 NOTE: Interface merge enabled by default
Fri Aug 20 14:10:12 2010 Initializing gdbm databases

[code]....

View 1 Replies View Related

CentOS 5 :: Getting Illegal Instruction Error Commands Like Yum

Nov 3, 2010

I am getting Illegal instruction error commands like yum:

I have centos 5.3

View 3 Replies View Related

Programming :: In C Program The Value Of An Integer Variable Is Changing Rapidly

May 12, 2010

In a c program the value of an integer variable is changing rapidly. I have to get the value of that variable at a particular instant from another program. How can i do it without using a file?

When i tried with extern variable as

I execute the both .c file from 2 terminals but got only value 0 printed for both var_a and var_b all the time .

View 4 Replies View Related

General :: Changing The Environment Variable Permanently In Ubuntu 10.10

Apr 30, 2011

I want to make change to environment PATH system wide. Because I have program called "md5". I want to execute it from anywhere (i.e any directory).

My md5 program is located at "/home/ahuq/MappingServer/md5_program". So what I did was to put: "export PATH=$PATH:/home/ahuq/MappingServer/md5_program" in the running SHELL.

This only makes temporary changes and lets me run the "md5" program from anywhere temporarily.

But I want to make this change permanent. So what I did was to put the "PATH=$PATH:/home/ahuq/MappingServer/md5_program" line into the "/etc/environment" file.

This screwed everything up and then for a while I couldn't execute anything from SHELL. I knew the absolute path of "nano" editor and used it to modify the file (i.e. /etc/environment) back to its original condition.

This fixed the problem and now I can run programs like "ls" from the SHELL.

But still I need a way to permanently add the path of "md5" to the environment. How can I do this in Ubuntu 10.10? Which file needs to edited?

Do I just logout or do I have to restart the system to make the changes active?

View 6 Replies View Related

Security :: Prevent Users From Changing Or Unset Their HISTFILE Variable?

Sep 30, 2010

'readonly HISTFILE'

but the user could tamper with the histfile itself. Like:
rm -f $HISTFILE;
rm -f $HISTFILE; mkdir $HISTFILE;
rm -f $HISTFILE; ln -s /dev/null $HISTFILE;

I'm experimenting with PROMPT_COMMAND to execute a command each time the user executes a command and so log it somewhere else.This post was pruned from the 2009 Is there a way to prevent users from changing or unset their HISTFILE variable? thread. Please do not resurrect old threads but instead create your own (and maybe provide a link to the old one).

View 2 Replies View Related

Fedora :: Telinit - Illegal Run Level 333

Oct 12, 2009

I just upgraded Fedora 10 to Fedora 11. When I rebooted I just had a flashing cursor. So I typed Ctrl-Alt-F2 to open a console window on booting. That worked fine. I was going to edit xorg.conf because I suspected the problem was related to haveing installed the latest Linux NVIDIA drivers (and custom kernal) in Fedora 10 before upgrading to Fedora 11. But, I decided to edit the run level in /etc/inittab first. Unfortunately, I fat fingered run level 3 to runlevel 333. No when booting I get hung up with the error "telinit: illegal run level 333". When I try to use Ctrl-Alt-F2 to open a console window on booting now it doesn't work. How to get into a console window with this error?

View 1 Replies View Related

General :: Interacting With Running Shells (Fedora 15)

Jun 21, 2011

I was able to set up SSH and log into my linux machine and I want to interact with shells already running on the desktop. I can locate and view the processes but I'm wondering if its possible to "get into" the program I already have running via SSH and enter commands.

View 4 Replies View Related

Software :: Changing Variable Name Breaks Bash Script - Find: Unknown Predicate `-maxdepth 1'

Oct 28, 2010

I'm not sure if I should post the whole script here (60 lines) but the script has a variable that occurs only three times, once when it's set and twice when it's referenced/read/expanded (not sure of the correct terminology)Anyway if I change the name of this variable from "maxdepth" to "findopts" the script throws the following error:

find: unknown predicate `-maxdepth 1'

But if I change the variable name to "maxIdepth" it still works? Here are the lines that this variable appears in:

maxidepth=('-maxdepth 1');
.
# other code, etc

[code]....

View 4 Replies View Related

Fedora Servers :: Changing Docroot Apache - Syntax Error

Apr 13, 2010

When I want to change my docroot in /home/Vincent/www or /home/Vincent/www/ it gaves me an.
:Syntax error on line 278 of /etc/httpd/conf/httpd.conf:
DocumentRoot must be a directory

I googled it already and they sad that you have to type in:
chcon -R -h -t httpd_sys_content_t /home/Vincent/www << doesn't work so I tried also chcon -R -h -t httpd_sys_content_t /home/Vincent/www/ But nothing seems to work?

View 1 Replies View Related

Fedora :: Changing Run Levels - Error - Failed To Create Symbolic Link

Jun 27, 2011

Ok now since f15 does not use inittab file for default runlevel anymore how do you change it.

I have tried ln -s /lib/systemd/system/multi user.target /etc/systemd/system/default.target

And get the following error ln: failed to create symbolic link `/etc/systemd/system/default.target': File exists

I have even tried changing the /etc/systemd/system/default.target to my multi-user.target file to no aval.

View 4 Replies View Related

Ubuntu Installation :: Error On Boot "Read Error After Changing Motherboard Battery

Dec 2, 2010

I changed my motherboard battery last night, and now get "Read Error" on booting to Ubuntu, on dual boot system. This is the most frustrating thing in an otherwise great operating system. It is the second time I have encountered this issue (last time was a change of power supply). I fixed it last time after three days of re-loading Grub2 and playing around Grub 2 updates, etc. Fixed it eventually, but as usual, no idea of what eventuality fixed it. I think I found a web page buried deep in the 'net, which talked about device.map. Do you think I can find it again - not yet - day 2 searching for the answer... This is what the grub script tells us:

[Code]....

View 7 Replies View Related

General :: What Is The /bin/ksh Shells

Jun 27, 2010

what is the /bin/ksh shells

View 1 Replies View Related

General :: Sudo Path Variable Error

May 28, 2010

I'm having a strange issue with the PATH variable when running the command 'sudo su'. When executing this command the PATH variable changes. No problems there, but it changes to:

Code:

Looking at this, there are two weird entries (//sbin and //bin) which should both start '/usr' instead. I'm not sure how I've managed to change this, or how a piece of software I'm using has done it (more likely it was me I expect), but could anyone suggest which file to look in to correct it? If it makes a difference the machine is running CentOS 5.

View 2 Replies View Related

Ubuntu :: Variable In A Script Error (command Not Found)?

Jan 13, 2010

I have the following script:

Code:
#!/bin/bash
for HOSTS in server01 server02 server03
do
echo "Connecting to $HOSTS"
echo "Resetting Password"
echo ""

[Code]...

done When I run the script I get an error message on the hosts that says: pass=test command not found. Any ideas why is not taking it as a variable?

View 1 Replies View Related

General :: (standard_in) 1: Parse Error Setting Variable With Bc?

Jul 19, 2011

I'm trying to define a variable, CHAN, by dividing another variable, FREQ, by a number. FREQ is a value from a file (called header.txt). What I think I'm doing with this bit of code is reading a number from header.txt whose location is specified by the head and tails, assigning it to FREQ and then defining CHAN with bc.

Code:
#!/bin/bash
while read FREQ

[code]....

View 2 Replies View Related

Programming :: Using Sed With Variable Created Using Xargs / Unterminated Error

Jan 12, 2009

I have an awk program that finds all files of a specific filename and deletes them from selected subdirectories. There is logic in the awk to avoid certain subdirectories, and this is initialized via a parameter in the beginning statement of the awk. The parameter should have all of the subdirectory names at the top level. This varies from time to time, so I cannot hard-code the value.I'm having a problem initializing the awk parameter using sed. I'm setting a variable (named subdir) using an "ls" command piped to "xargs". I'm then trying to substitute that value into the awk using the sed command.

View 3 Replies View Related

Ubuntu :: Shells - Run IRC Remotely With Screen

Mar 24, 2011

Does anyone know of any free services offering debian or ubuntu shells? I want to run IRC remotely with screen, but free services only seem to offer unix shells. I'm not really bothered by that but I feel more comfortable on ubuntu.

View 2 Replies View Related

Ubuntu :: Can't Upgrade Illegal Package Name?

Jul 11, 2011

I've been trying to install the latest updates on my Ubuntu 10.10 system but keep getting the same error in Update Manager and the terminal:

Code:
dpkg: file triggers record mentions illegal package name I've tried running sudo dpkg --configure -a and sudo apt-get upgrade -f after running sudo apt-get update but to no avail.

After searching the forum and google I haven't been able to find this issue or a solution to a similar issue that works for my problem.

View 9 Replies View Related

General :: Difference Between CLI Terminal Shells?

Jan 16, 2010

Is there a difference between the shells such as sh, csh, ksh and bash if so what is it or is it simply a matter of preference?

View 2 Replies View Related

General :: Calling URL From Shells Script

Jun 13, 2011

I have to call URL from shell script. E.g.: www.google.com. How can I call URL from the shell script.

View 6 Replies View Related

General :: Differences Between Shells - Which One Is Better To Run Under Scripts

Nov 16, 2010

What are the differences between the shells in Linux (eg. bash,bourne,korn,C etc) and which one is it better to run scripts under?

View 4 Replies View Related

Server :: Illegal Character In User Name?

Mar 7, 2010

I have a SUSE mail server where I have user names like john.doe. And so the email address looks like [URL]..Now I move the server to slackware and I cannot create such users, it shows the error (I use adduser command): User 'john.doe' contains illegal characters (period/dot); please choose another What can be the best (simplest) solution to preserve my email addresses as they are. I also would like to preserve the user-names used for email authentication, because there are lot of mail user clients already using those logins. What is the point in that the dot is illegal in user names? I guess that there is a good reason to this but I would like to know what it is.

View 3 Replies View Related

Software :: Play On Using Illegal Scripts?

Feb 17, 2011

I just downloaded Play On Linux to my computer. I saw that I could install Microsoft Office 2007, and wondered ho that was legal, so I clicked on it. An install wizard came up and said, we are not in charge for anything that happens.

View 3 Replies View Related

Slackware :: How Are Variables Set For Interactive Shells

May 5, 2010

I am trying to figure out where variables are set for interactive shells? In particular, I am trying to have LS_OPTIONS inherited by interactive shells as it is by login shells. I understand LS_OPTIONS is set in /etc/profile, and this may not be processed by interactive shells but by login shells. However, I also note other variables such as PATH and INPUTRC are set correctly in interactive shells, and these are also set in /etc/profile from what I understand. So how is it determined which variables are inherited by all shells, and which are just for login shells?

View 16 Replies View Related

Slackware :: Read $PS1 On Non-login Shells?

Jun 6, 2010

Let's say that I have a customized Bash prompt stored as a PS1 variable. My variable gets read every time I invoke a login shell, i.e., when logging in in one of the standard virtual terminal or by invoking xterm with the -ls parameter.

However, when I just invoke the terminal without specifying that it is a login shell, I just get something like: bash-XXX$ as a prompt.

where should I place my PS1 variable so that it could get read even on non-login shells?

View 7 Replies View Related

Ubuntu Servers :: Mysqld.pid File Error On 8.04.4 LTS - Unknown Variable

Feb 4, 2010

I'm running Ubuntu 8.04.4 LTS to host a moodle server in a school.. moodle is running OK - but I'm having problems with MySql Any mysql command generates:

unknown variable 'pid-file=/var/run/mysqld/mysqld.pid'

I've taken a look in unknown variable 'pid-file=/var/run/mysqld/ and there is no mysqld.pid file I have followed these instructions that I found elsewhere:

If there�s no mysqld.pid inside /var/run/mysqld directory, create mysqld.pid
# cd /var/run/mysqld
# touch mysqld.pid

[code]....

But after reboot the mysqld.pid file is missing again.. I can access mysql via phpmyadmin - but webmin fails with unknown variable 'pid-file=/var/run/mysqld/mysqld.pid'

View 8 Replies View Related

Programming :: C++ Multiple Variable Declaration Error - Even After I Set #ifndef Preprocessor

Jan 18, 2011

Why do I still get mutiple definition of "_my_variable" error even after I used the #ifndef preprocessor in my hpp file?

This is my scenario
I have:
1. A.cpp (including X.hpp)
2. B.cpp (including X.hpp)
3. X.hpp

[Code]...

View 4 Replies View Related

Programming :: Bash - Read Content Of File To Variable And Use This Variable In For Loop ?

Aug 21, 2009

I'm trying to read content of file to variable and use this variable in for loop. The problem is, when I have c++ comment style in file - /*. Spaces in line are also interpreted as separated lines.

For example:

Code:

Changing $files to "$files" eliminate these problems but causes that whole content of variable is treated as one string (one execution of loop).

View 6 Replies View Related







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