Sponsored Content
Full Discussion: Bash display error
Operating Systems Solaris Bash display error Post 302825991 by solaris_1977 on Tuesday 25th of June 2013 03:32:59 PM
Old 06-25-2013
Bash display error

Some of my admin made some changes on my Solaris-10 box and after that I started getting this wiered issue. I checked path, but not able to figure it out. This is for a non-root user
Code:
gcadmin@brbpod06:[~] $ echo $SHELL
/usr/bin/bash
gcadmin@brbpod06:[~] $ bash
bash: brbpod06:: command not found
gcadmin@brbpod06:[~] $ echo $PATH
/usr/bin:/bin:/usr/sbin:/bin/nms/apps/netcool/Omnibus/netcool/bin:/nms/apps/netcool/Omnibus/omnibus/bin:/nms/apps/netcool/Omnibus/omnibus/probes:/nms/apps/netcool/Omnibus/netcool/platform/solaris2/jre64_1.6.0/jre/bin
gcadmin@brbpod06:[~] $
gcadmin@brbpod06:[~] $ cat .profile
ulimit -n 8192
# New environment setting added by IBM Tivoli Network Manager on Wed Jun 05 15:07:07 PDT 2013 1.
# The unmodified version of this file is saved in /nms/apps/netcool/.profile2104888322.
# Do NOT modify these lines; they are used to uninstall.
DB_LOCALE=EN_US.UTF8
export DB_LOCALE
# End comments by InstallAnywhere on Wed Jun 05 15:07:07 PDT 2013 1.
 
#
# Copyright (c) 2001 by Sun Microsystems, Inc.
# All rights reserved.
#
# ident "@(#)local.profile      1.10    01/06/23 SMI"
#stty istrip
#PATH=/usr/bin:/usr/ucb:/etc:.
#export PATH
export TCR_HOME=/nms/apps/netcool/Omnibus/tipv2Components/TCRComponent
export TIP_HOME=/nms/apps/netcool/Omnibus/tipv2
export TIPHOME=/nms/apps/netcool/Omnibus/tipv2
export PRECISION_HOME=/nms/apps/netcool/Omnibus/netcool/precision
export PRECISION_DOMAIN=ITNM_P
export PATH=/usr/bin:/bin:/usr/sbin:/bin:$PRECISION/bin:$ITNMHOME/bin:$TIP_HOME/bin:$TIPHOME/bin:$NCHOME/bin:$OMNIHOME/bin:$OMNIHOME/probes:$NCHOME/platform/solaris2/jre64_1.6.0/jre/bin
export ITNMHOME=/nms/apps/netcool/Omnibus/netcool/precision
export INFORMIXDIR=/nms/apps/netcool/informix
export NCHOME=/nms/apps/netcool/Omnibus/netcool
export OMNIHOME=/nms/apps/netcool/Omnibus/omnibus
export PATH=/usr/bin:/bin:/usr/sbin:/bin$NCHOME/bin:$OMNIHOME/bin:$OMNIHOME/probes:$NCHOME/platform/solaris2/jre64_1.6.0/jre/bin
#export LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:/nms/apps/netcool/Omnibus/platform/solaris2/lib64:/nms/apps/netcool/Omnibus/omnibus/platform/solaris2/lib64:/nms/apps/netcool/Omnibus/platform/solaris2/lib:/nms/apps/netcool/Omnibus/omnibus/platform/solaris2/lib
export HISTFILESIZE=5000
export HISTSIZE=50000
export PS1="\u@\h:[\w] $ "
gcadmin@brbpod06:[~] $

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Bash Script to display directories in Path?

Hello there, As a newbie: The directories in PATH can be hard to distinguish when printed out as one line with colon .Please, can i have a sample script to display them,one to a line. Thank you. (1 Reply)
Discussion started by: debut
1 Replies

2. Shell Programming and Scripting

Display runnning countdown in a bash script?

I am looking for a way to display on a single line, a running countdown for a given amount of time in a terminal using a bash script. I am looking for this to use as part of a larger bash script that captures Video. The script sets up a bunch of parameters for DVgrab, and one of the parameters... (11 Replies)
Discussion started by: Starcast
11 Replies

3. Shell Programming and Scripting

Bash Help: users who are not logged into the system to display

A Newbie here, I am working on a script and am having problems with the else part of the script. I can't get the users who are not logged into the system to display on the screen with their username and the text "The user is not logged in". I am sure it is something simple and stupid, but I... (5 Replies)
Discussion started by: rchirico
5 Replies

4. Shell Programming and Scripting

Run a bash script, display on the screen and save all information in a file including error info

Hi all, How to: Run a bash script, display on the screen and save all information in a file including error information. For example: I have a bash script called test.sh now I want to run the test.sh and display the output on the screen and save the output including error info to a file. ... (1 Reply)
Discussion started by: Damon sine
1 Replies

5. Shell Programming and Scripting

Display output bash program

Hello, i have a problem with the output from my bash program. I made this program #!/bin/bash BESTANDEN=$* # Plaatst bestanden in de variabele BESTANDEN TMPFILE=xmlprog.sh.$$.$RANDOM # basisnaam voor tijdelijke bestanden # controller of het programma correct is aangeroepen if then ... (6 Replies)
Discussion started by: dutchspiders
6 Replies

6. Shell Programming and Scripting

bash script to display tail

Hi everyone, I'm trying to write a script to format a file using unix2dos. I want to output all but the first 14 lines in a file. Then I want to pipe this to unix2dos to convert the output to a file that's easily readable on windows. Here's what I have: export Lines=`wc -l < $1` export... (11 Replies)
Discussion started by: LuminalZero
11 Replies

7. Shell Programming and Scripting

Bash Info Display

I have written the following bash function prArgv Suppose the calling sequence is as follows prArgv VAL1 VAL2 DESC VAL3 VAL4 v2d1 s4 p15 The call will look at the tag k1v2, add the numbers together, in this case 2+1=3 This means that the function will look at the first 3 user arguments... (1 Reply)
Discussion started by: kristinu
1 Replies

8. Shell Programming and Scripting

Display-performance in terminal, bash or python?

Heyas I've been working on my project TUI (Text User Interface) for quite some time now, its a hobby project, so nothing i sit in front of 8hrs/day. Since the only 'real' programming language i knw is Visual Basic, based upon early steps with MS-Batch files. When i 'joined' linux 3 years ago,... (7 Replies)
Discussion started by: sea
7 Replies

9. Shell Programming and Scripting

Display user selction from bash menu

I am trying to display the text the user selects from a bash menu. The below will display the menu and allow the user to enter a number, but will not display the choice selected. bash while true do printf "\n please make a selection from the MENU \n ... (4 Replies)
Discussion started by: cmccabe
4 Replies

10. Linux

Bash Display First Friday of the next month

Hello, I need to find the date of next first Friday of the month and set as a variable in a bash script ie - FIRSTFRIDAY=$(date -dfirst-friday +%d) I know date -dfirst-friday doesn't work, but unsure if I can use this / cal + awk or something else to find the right date of the... (7 Replies)
Discussion started by: summerdays
7 Replies
INITSCRIPT(5)						Linux System Administrator's Manual					     INITSCRIPT(5)

NAME
initscript - script that executes inittab commands. SYNOPSIS
/bin/sh /etc/initscript id runlevels action process DESCRIPTION
When the shell script /etc/initscript is present, init will use it to execute the commands from inittab. This script can be used to set things like ulimit and umask default values for every process. EXAMPLES
This is a sample initscript, which might be installed on your system as /etc/initscript.sample. # # initscript Executed by init(8) for every program it # wants to spawn like this: # # /bin/sh /etc/initscript <id> <level> <action> <process> # # Set umask to safe level, and enable core dumps. umask 022 ulimit -c 2097151 PATH=/bin:/sbin:/usr/bin:/usr/sbin export PATH # Increase the hard file descriptor limit for all processes # to 8192. The soft limit is still 1024, but any unprivileged # process can increase its soft limit up to the hard limit # with "ulimit -Sn xxx" (needs a 2.2.13 or later Linux kernel). ulimit -Hn 8192 # Execute the program. eval exec "$4" NOTES
This script is not meant as startup script for daemons or somesuch. It has nothing to do with a rc.local style script. It's just a handler for things executed from /etc/inittab. Experimenting with this can make your system un(re)bootable. FILES
/etc/inittab, /etc/initscript. AUTHOR
Miquel van Smoorenburg ,<miquels@cistron.nl> SEE ALSO
init(8), inittab(5). July 10, 2003 INITSCRIPT(5)
All times are GMT -4. The time now is 11:39 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy