CentOS 5 :: Getting A Shell Script To Run?

Nov 24, 2009

I cannot get the following shell script to run. It is required for an installation of an Intel compiler (i.e. I did not write the script). I have had no trouble running other scripts but I cannot see what I am doing wrong with this one:

#! /bin/sh
export MKLROOT="/opt/intel/Compiler/11.1/059/mkl"
if [ -z "${INCLUDE}" ]
then

[Code]....

In a terminal I cd to the folder where the above script (mklvarsem64t.sh) resides and type that script name. Nothing happens and when I echo one of the environment variables (e.g. echo $LD_LIBRARY_PATH) I do not get what it is supposed to be (it remains as it was before running the script).

View 1 Replies


ADVERTISEMENT

CentOS 5 :: Ftp - Chroot In The Shell?

Jul 30, 2009

ive created user in my server for vsftp and they are chroot when they use the ftp but not when they use the shell. How to chroot them into the shell?

View 3 Replies View Related

CentOS 5 :: No Shell In VNC Session?

Jan 5, 2011

not have shell in VNC session ,

on a clean install of centos put these command

yum update -y
yum groupinstall -y "Japanese Support"
yum install -y rtorrent lftp mc firefox
yum -y groupinstall xfce

[Code]....

View 4 Replies View Related

CentOS 5 :: Bash Shell Corrupt

Feb 1, 2011

I just needed some help with running the bash shell. I think I might have accidentally corrupted a file when I was looking through the /bin dir. Anyways, whenever I login to my server via SSH I get the following output:

View 1 Replies View Related

General :: Shell - On (CentOS 5), Remembering When We've Followed A Symlink And Being About To 'cd?

Dec 10, 2010

I'm trying to figure out how to tell the shell (tcsh) to remember when I've gone into a symlinked folder, and allow 'cd' to navigate back out of the symlink rather than just navigate to the parent directory of the linked-to folder...

For example:

$ ls -al /jobs
tech -> /mnt/projects1/tech
temp -> /mnt/projects2/temp
$ cd /jobs/tech
$ cd ../temp
../temp: No such file or directory.
$ pwd
/mnt/projects1/tech

View 2 Replies View Related

CentOS 5 :: Upgrade PHP 5.1 To 5.2 And Other Packages Using Webmin Or Shell?

Nov 24, 2010

I want to install some software which need PHP 5.2 to run but I currently run PHP 5.1 I have been going through this http://wiki.centos.org/HowTos/PHP_5.1_To_5.2 but when I get to the bit that says

View 2 Replies View Related

CentOS 5 :: Run Shell Script At System Startup?

Apr 28, 2011

I use CentOS 5.5 and I've trouble in run shell script after system reboot. That script runs jboss server and it looks that way:

#!/bin/sh
rm -R -f /opt/billing/jboss-6.0.0.M1/server/default/tmp/
rm -R -f /opt/billing/jboss-6.0.0.M1/server/default/work/
/opt/billing/jboss-6.0.0.M1/bin/run.sh -c default -b 0.0.0.0 -C /opt/billing/jboss-6.0.0.M1/server/default/lib/ > /dev/null &

I've created user account for jboss.

privileges of above script are okay. I've tried so far:

- add command to /etc/rc.local

- add script to /etc/rc3.d/ and create symbolic link to it in /etc/init.d/

- add run script by @reboot annotation in crontab (crond automatically starts with OS)

and jboss still sleeps after reboot. I've noticed that commands which remove directories seem to work when I've added them explictly to /etc/rc.local. But next command which runs jboss hasn't been executed.

View 4 Replies View Related

CentOS 5 :: Shell Script For Raid Monitoring?

Aug 30, 2011

shell script for raid monitoring?just to send email when the raid has errors.

View 3 Replies View Related

CentOS 5 :: Scheduled Task That Executes A Shell Script?

Dec 17, 2009

I centos version 5 installed on server 2, and I want to make a scheduled task that executes a shell script.This script should copy some files and directories from one server to another. I do not use DRBD and Heartbeat.

View 1 Replies View Related

CentOS 5 :: PHP, MSSQL (FreeTDS) Working Ok From Shell, TSQL But Not From Apache?

Jan 12, 2010

I need CentOS to communicate with an MS SQL Server 2000.I have installed FreeTDS and PHP and the following work:TSQL (using and selecting from the SQL Server)PHP from Shell (running a script from the shell)

View 5 Replies View Related

CentOS 5 :: Creating A Simple Live CD That Executes A Shell Script?

Mar 9, 2010

I would like to a build a CD image (of CentOS 5, x86_64 that loads into memory and boots to the OS without installing anything to hard drives. Then I would like the system to execute a shell script automatically. The shell script will have commands that will control execution.

The goal of this exercise is basically to pre-configure a system (RAID config, BIOS update, etc) automatically using the shell script before installing the OS. I would like the ability to change the shell script as needed and probably repackage the ISO image. I would prefer not to deal with building a source tree to accomplish this. this is something one could do using mkisofs.

View 1 Replies View Related

CentOS 5 :: Pass Shell As Command Line Argument When I Ssh To An Account

Jan 25, 2011

I want to have a choice or more preferable pass shell as command line argument when I ssh to an linux account.i.e. If John logs in to account "zzz" on server "abc", by default definition of account "zzz" n server "abc" he get csh.But Sally desires that when she logs in to account "zzz" on server "abc", she needs the login shell to be ksh,and Rick wants bash when he logs in to account "zzz" on server "abc".What is the most non-intrusive / easiest way to achieve this? Each user can set their preference on ssh command line or create a simple alias by each shell, but not sure how to do this.

View 6 Replies View Related

CentOS 5 Server :: MySQL Shell Access Denied / Get It To Work?

Feb 20, 2011

I'm having a hard time to access MySQL from the local or remote shell.
If I try to access MySQL, using mysql -u root -pxxxx I get the error 1045 Access denied...

MySQL is running and I can access it, using phpmyadmin.

There must be something blocking shell access. Can anybody confirm and tell me how to check/configure for shell access?
I'm using ca preconfigured CenOS from PBX in a flash and it seems they did some security settings - but I can't find any further information.
I know I should probably post there, but the Mods didn't activate my account yet. And you know how it is if you try to figure something out. You won't stop.

View 1 Replies View Related

CentOS 5 Server :: FreeNX - Cannot Get Shell Prompt In GNOME Terminal Window

Jun 9, 2010

I've created a brand new CentOS 5.4 (Final) 64bit machine AMI on Amazon EC2. This was based off an existing image. I was able to follow the wiki to add NX server. I am using WIN XP desktop for NX client.

I can connect to the EC2 machine and get the GNOME desktop fine. I see the usual CentOS desktop and poke around.

Q/Problem:

I expected to open the Terminal window and get a shell prompt to su into root user (I need to be root to install some software that needs GUI). I do not want to install this from my plain SSH connection to EC2 (hence the NX server etc.).

When I open the Terminal window, all I get is the NX>105 prompt. I need to get to a shell prompt so I can su into root. For life of me, I cannot get around this prompt (I looked at NX documentation too). Note that this is a prompt NOT on client but on the remote machine. I do not need this as I'm already authenticated and logged in to remote GNOME desktop.

Obviously the TERMINAL is running some NX start up script (I've no idea which one). If there is some other way to sudo into root?

View 14 Replies View Related

General :: $HOME/.bashrc Disabled When User Shell Is 'rbash' (restricted Shell)?

Jun 15, 2011

MACHINE: HP Proliant DL260G5OS: SLES 11 SP1kernel: Linux xserver 2.6.32.12-0.7-default #1 SMP 2010-05-20 11:14:20 +0200 x86_64 x86_64 x86_64 GNU/LinuxIt is used as remote xserver in a LAN.I have configured /usr/lib/restricted/bin/.rbashrc with some environment variables but when the users logon in the system finally is executed $HOME/.bashrc and some environment vars are overwritten.

View 2 Replies View Related

Fedora :: Stuck With Bash Shell / Changing Default Shell To Tcsh?

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

Ubuntu :: Using 10.04-server 64bit AMD With Fluxbox - Matlab In A Shell The Shell Does Not Display Characters Anymore

Jul 26, 2010

I am using ubuntu10.04-server 64bit AMD with fluxbox. After I ran Matlab in a shell (without GUI) the shell does not display characters anymore, but will execute any command, I just can't see the characters that I'm typing.. I use aterm and xterm, does anybody know why that is, am I missing a package?

View 1 Replies View Related

Ubuntu :: Switch Desktop Shell From Unity To Gnome-shell?

Apr 14, 2011

Is there any way I can switch my desktop shell from unity to, say, gnome-shell? I can switch using other console shell I like (bash, csh, fish, etc.). Assume that there is a stable alternative desktop shell, I should be able to choose, too.

(For console shell, we goes to /etc/passwd. But for desktop, I can't find the way to config.)

View 2 Replies View Related

Software :: Export A Variable To Parent Shell In Shell Scripting?

May 21, 2009

Is there a way to export a variable to parent shell in shell scripting ?

View 3 Replies View Related

Programming :: Shell Scripting / Create A Shell Script Similar To Ls?

Jun 5, 2011

I am trying to create a shell script similar to ls, but which only lists directories. I have the first half working (no argument version), but trying to make it accept an argument, I am failing. My logic is sound I think, but I'm missing something on the syntax.

Code:
if [ $# -eq 0 ] ; then
d=`pwd`
for i in * ; do
if test -d $d/$i ; then
echo "$i:"
code....

View 10 Replies View Related

General :: Write A Shell Script Instead Of Shell Function?

Apr 27, 2011

I would like know when it is necessary or advisable to write a shell script instead of shell function ?

View 3 Replies View Related

Programming :: Bash-shell-like Less Functionality In The Python Shell?

Jun 25, 2010

Is there some type of functional way to read things in the Python shell interpreter similar to less or more in the bash (and other) command line shells?

Example:

Code:

>>> import subprocess
>>> help(subprocess)
...
[pages of stuff to read]
...

I'm hoping so as I hate scrolling and love how less works with simple keystrokes for page-up/page-down/searching etc.

View 4 Replies View Related

CentOS 5 Server :: Server Update Using Shell Commands?

Feb 22, 2009

Is there a way to run CentOS 5.2 update system using the shell, avoiding the GUI (I want to do it remotely using SSH?

View 1 Replies View Related

General :: Open A New Shell From A Shell And Switch Between Them?

Jan 18, 2011

I am wondering if I can open a shell or new terminal thing from within the terminal in a unix/linux enviroment. Particularly a commandline only one where there is no GUI. Is this doable? how do I do it?

View 3 Replies View Related

Programming :: Prevent "leak" Into Shell From A Customized Shell Menu Script?

Dec 15, 2009

I've created a simple script based menu. This menu will be accessed by only a certain users via ssh.When user logs in, the menu will automatically run. (configured at user's .bash_profile).How do I force the session to close when user hits Ctrl-C or Ctrl-Break ?In a nutshell, I don't want user to have access to shell.

View 11 Replies View Related

Server :: Add To The Shell Script That Will Allow To Generate The File Using The Shell Script?

Jan 24, 2010

Quote:

/usr/local/bin/mencoder /root/video1.avi -of lavf -ovc lavc -lavcopts vcodec=flv:vbitrate=300:acodec=libfaac:abitrate=64 -srate 22050 -oac lavc -vf scale=360:240 -o /root/output_temp_video1.flv

[code]....

View 2 Replies View Related

Programming :: How To Turn Non-interactive Shell Into Interactive Shell?

Feb 4, 2011

I have a situation where I am in a non-interactive shell. I have tried from within my non-interative shell to spawn an interactive shell but my output still does not goto me. Isn't there a way I can somehow go into /proc or somwhere and make the output my /dev/tty1? Or some way else to remedy this?The situation arises because I drop from my restricted shell environment (a sort of CLI interface), into the actual Linux shell. I cannot change the code of the CLI environment I am just faced with being in the linux shell environment and its non-interactive. Its very annoying to have to put > /dev/tty1 after every command I type.

Not to mention it seems damn near impossible to get pagers like more and less to work properly when your in a non-interactive shell.

View 2 Replies View Related

CentOS 5 :: Installation Of Guest CentOS 5.5 DomU On Centos 5.5 Xen Dom0?

Aug 4, 2010

Problems with xen 3.1.2 creating and installing domU CentOS 5.5 I am trying to do a virt-install --prompt --paravirt, and the install error out while trying to download install RPMs. I have googled for xen centos virt-install and various permutations. I have found similar howtos for 5.4 and 5.3, but they resulted in the same outcome. I did find several posts with similar issues, but no solution was posted.[URL]..

View 4 Replies View Related

CentOS 5 :: Centos 5.5 X86_64 Or Centos 5.5 I386 - Difference Between The Two Versions?

Feb 9, 2011

I am in the process of building a new server on an Asus P5QPL-AM motherboard and an Intel E8600 processor.explain to me the difference between the two versions and what would you recommend.Also, is there any advantage of SATA over IDE hard drives?

View 1 Replies View Related

Ubuntu :: How To Get It With Shell

Apr 7, 2010

there is a txt file :

["date"]1
["asset"]2
["cash"]3
["finance"]4

[code]....

what i want to get is :

["date"]0
["asset"]1
["cash"]2
["finance"]3

[code]....

how to get it with shell?

View 5 Replies View Related







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