if i give path command output like this
how to edit path file
where it resides.
$PATH
bash: /opt/terascan/pass/postprocs:/opt/terascan/bin:/opt/terascan/pgs/bin:/opt/terascan/batch/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/teradm/bin: No such file or directory
if you examined the suggested FAQs posted for one of your previous threads, you would have found this
yes friend
i found diffrence in both files.
i have run env from command line in that file path variable is ok.
but script file path variable is diffrent.
now i should change the path which is given by script file.
please give me the path where script file env is located
rajan_ka1:
yes friend
i found diffrence in both files.
i have run env from command line in that file path variable is ok.
but script file path variable is diffrent.
now i should change the path which is given by script file.
please give me the path where script file env is located
I don't think I understand the question.....
You need to change the $PATH in your script. The hint of syntax was given in the FAQ link posted previously.
please give me the syntax of setenv command used in csh
once again - read the posted link from the FAQ section and the man pages for 'csh' - 'man csh'.
csaha
February 21, 2006, 6:42am
8
go to ur home dir and run this " ls -ltra " and paste the o/p here
I think you're posting to the wrong thread
rajan_ka1:
unable to understand
in your script do the following:
setenv PATH "$PATH:/opt/terascan/bin"
the above will add '/opt/terascan/bin' directory to your PATH environment variable.
add all the needed paths that your script commands are relying on.
csaha
February 21, 2006, 6:50am
11
I think you're posting to the wrong thread
No .. just wanted to show you some basic stuffs ... which could have helped u ... any way ...
...... and what does this 'basic stuff' have to do with the OP question?
I must be going blind.
csaha
February 21, 2006, 7:10am
13
Let him paste " ls -ltra " o/p
vgersh99:
in your script do the following:
setenv PATH "$PATH:/opt/terascan/bin"
the above will add '/opt/terascan/bin' directory to your PATH environment variable.
add all the needed paths that your script commands are relying on.
yes dear friend,
i wrote PATH in my script.
but the error
Bad : modifier in $ (/).
please give reply
regards
rajan
op
-rw------- 1 teradm terascan 26 Feb 11 17:29 .dmrc
drwxr-xr-x 3 teradm terascan 4096 Feb 11 17:29 .mcop
drwxrwxr-x 4 teradm terascan 4096 Feb 11 17:29 .kde
drwx------ 2 teradm terascan 4096 Feb 11 17:29 .gnome2_private
drwx------ 2 teradm terascan 4096 Feb 11 17:29 .gnome
drwxr-x--- 2 teradm terascan 4096 Feb 11 17:29 .eggcups
drwx------ 2 teradm terascan 4096 Feb 11 17:29 .rhn-applet
drwx------ 3 teradm terascan 4096 Feb 11 17:52 .mozilla
-rw------- 1 teradm terascan 278 Feb 11 22:04 .recently-used
-r--r--r-- 1 teradm terascan 235 Feb 12 01:24 .mime.types
-r--r--r-- 1 teradm terascan 64 Feb 12 01:24 .mailcap
-r--r--r-- 1 teradm terascan 219 Feb 12 01:24 .login
-r--r--r-- 1 teradm terascan 13 Feb 12 01:24 .i18n
-r--r--r-- 1 teradm terascan 5111 Feb 12 01:24 .dtprofile
-r--r--r-- 1 teradm terascan 30 Feb 12 01:24 .cshrc
-r--r--r-- 1 teradm terascan 272 Feb 12 01:24 .bash_profile
-r--r--r-- 1 teradm terascan 24 Feb 12 01:24 .bash_logout
drwxr-xr-x 5 root root 4096 Feb 12 01:24 ..
drwxr-xr-x 2 teradm terascan 4096 Feb 13 08:46 .gstreamer-0.8
-rw------- 1 teradm terascan 31 Feb 13 19:16 .mcoprc
-rw------- 1 teradm terascan 21642 Feb 14 06:02 .face
-r--r--r-- 1 teradm terascan 288 Feb 14 06:50 .bashrc
-rw-rw-r-- 1 teradm terascan 227 Feb 15 06:50 cron_bkp
drwx------ 7 teradm terascan 4096 Feb 16 10:54 Mail
drwxrwxrwx 4 teradm terascan 4096 Feb 16 20:06 .terascan
-rw------- 1 teradm terascan 495 Feb 17 06:46 .rhn-applet.conf
-rwxrwxr-x 1 teradm terascan 401 Feb 18 05:05 vr_peek.sh
drwx------ 3 teradm terascan 4096 Feb 18 10:10 .thumbnails
drwx------ 3 teradm terascan 4096 Feb 18 10:24 Desktop
-rw-rw-r-- 1 teradm terascan 11297 Feb 20 04:57 sch_feb_20
-rw-rw-r-- 1 teradm terascan 1737 Feb 20 04:58 sch_feb20-a
-rw-rw-r-- 1 teradm terascan 307 Feb 20 07:32 .fonts.conf
-rw-r--r-- 1 teradm terascan 43653 Feb 20 07:41 cr-test.txt
drwxr-xr-x 2 teradm terascan 4096 Feb 20 10:46 .xine
-rw------- 1 teradm terascan 195 Feb 20 11:43 .ICEauthority
lrwxrwxrwx 1 teradm terascan 36 Feb 20 11:43 .DCOPserver_incois-a_:0 -> /home/teradm/.DCOPserver_incois-a__0
-rw-rw-r-- 1 teradm terascan 57 Feb 20 11:43 .DCOPserver_incois-a__0
drwxrwxr-x 2 teradm terascan 4096 Feb 20 11:43 .qt
drwx------ 3 teradm terascan 4096 Feb 20 11:43 .gconf
drwx------ 4 teradm terascan 4096 Feb 20 11:43 .gnome2
-rw-rw-r-- 1 teradm terascan 546 Feb 21 05:59 doubt_login
drwxrwxr-x 5 teradm terascan 4096 Feb 21 06:10 .evolution
-rwxrwxr-x 1 teradm terascan 84 Feb 21 06:20 test.sh
-rwxrwxr-x 1 teradm terascan 436 Feb 21 09:32 vr_peek.csh
-rw-r--r-- 1 teradm terascan 29 Feb 21 09:58 cron_log1.log
-rw-rw-r-- 1 teradm terascan 2124 Feb 21 10:48 comdenv
-rw-rw-r-- 1 teradm terascan 392 Feb 21 10:52 scriptenv
-rw-rw-r-- 1 teradm terascan 9399 Feb 21 10:52 sch_feb22-26-a
-rw-rw-r-- 1 teradm terascan 0 Feb 21 11:38 list
-rw-rw-r-- 1 teradm terascan 208 Feb 21 11:38 tempwho
drwx------ 2 teradm terascan 4096 Feb 21 11:40 .gconfd
-rw------- 1 teradm terascan 227 Feb 21 17:17 .Xauthority
-rw------- 1 teradm terascan 6333 Feb 22 02:09 .bash_history
-rwxrwxr-x 1 teradm terascan 156 Feb 22 03:32 test.csh
-rw-r--r-- 1 teradm terascan 25 Feb 22 03:35 cron_log2.log
-rw------- 1 teradm terascan 4885 Feb 22 03:40 .viminfo
drwx------ 20 teradm terascan 4096 Feb 22 03:40 .
[teradm@incois-a ~]$
csaha
February 21, 2006, 11:33pm
16
If you do , .bash_profile will be like this ...
$ cat .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
unset USERNAME
add the PATH enry here ...
i am sending modified bash_pr file
i have added /opt/terascan/bin pass at the end of file
but my script is not working.
please go through and give me assistance.
regards
rajan
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
umask 0002
PATH=$PATH:$HOME/bin
BASH_ENV=$HOME/.bashrc
export BASH_ENV PATH
PATH= $PATH:/opt/terascan/bin
source /opt/terascan/etc/tscan.bash_profile
~
csaha:
If you do , .bash_profile will be like this ...
$ cat .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
unset USERNAME
add the PATH enry here ...
=============================================
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
umask 0002
PATH=$PATH:$HOME/bin
BASH_ENV=$HOME/.bashrc
export BASH_ENV PATH
PATH= $PATH:/opt/terascan/bin
source /opt/terascan/etc/tscan.bash_profile
i modified path variable above.
but script is not working.
please help
rajan_ka1:
=============================================
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
umask 0002
PATH=$PATH:$HOME/bin
BASH_ENV=$HOME/.bashrc
export BASH_ENV PATH
PATH= $PATH:/opt/terascan/bin
source /opt/terascan/etc/tscan.bash_profile
i modified path variable above.
but script is not working.
please help
dear csaha,
please see the above code any give me suggestions.
regards
rajan