Hi everyone,
I have added this to my .bash_profile. Whenever I log in and when I type javac I get a error message (java: command not found). Does the order counts?
PATH=$JAVA_HOME/bin:$PATH:$HOME/bin
JAVA_HOME=$JAVA_HOME/usr/local/jdk1.3.1_02
export JAVA_HOME PATH
Thanks
ny (3 Replies)
First: me == noob. Whats a good resource for shell script info cause I'm having trouble finding good info.
I'm writing a shell script to automate the setup of a flash 'page flip'.
My current code is below.
the page flip takes an xml file of format
<content>
<pages... (1 Reply)
I am setting my PATH & LD_LIBRARY_PATH through .cshrc file while sourcing it on a old shell i am getting the error word too long .and the changes which i anm doing doesn't get updated .
i am in a multi user environment so the only way to do the changes only for my shell is to do it that way.
... (1 Reply)
How do I input the environment variable in the .cshrc file to have the up and down arrows recall the last commands??? This is for Solaris 10.
:confused::confused: (1 Reply)
1. The problem statement, all variables and given/known data:
Write a shell program called myenv which takes one argument. The argument should be the name of an environment variable, such as PATH HOME etc. myenv should print out the value of the variable given as the argument. If no argument is... (1 Reply)
Hello!
For the moment some settings in my .bashrc contain the password of my company's firewall, which is not a good idea. I would like to use the string "PASSWORD" set in .bashrc and a script that changes all appearances of "PASSWORD" in the environment variables by the actual password (which... (4 Replies)
Hi Guys,
I have a a bash script and i am exporting a variable in it.
I am calling a csh script from this bash script.
The variable "ABC" will be visible in csh script.
ks.bash
export ABC = abc
./kp.csh
ab.csh
echo $ABC
setenv ABC =cde (i want to assign this value to ABC only if... (4 Replies)
My manager required that i keep the hostnames and username and password in a separate file when creating my sftp script.
(Don't mention passwords and sftp...I've talk to him about this several times)
I have a list of hostnames that have to be read in a loop in my main script.
I don't know... (3 Replies)
"Debian 9 64x - LXDE"
I try to source a file from my parent directory:
#!/bin/bash
#source.bash
. ../links.bash but i get "file not found".
I tried . "../links.bash" and . '../links.bash'. I got on all methods the same result.
If i use the absolute path it works, but i don't want to... (4 Replies)
Discussion started by: int3g3r
4 Replies
LEARN ABOUT OPENSOLARIS
which
which(1) User Commands which(1)NAME
which - locate a command and display its pathname or alias
SYNOPSIS
which [name]...
DESCRIPTION
which takes a list of names and determines which alias or utility would be executed had these names been given as commands.
For each name operand, if it names an alias the alias is expanded. Otherwise the user's path is searched for a utility name matching name.
Aliases are taken from the user's .cshrc file. path is taken from the current shell execution environment.
OPERANDS
The following operand is supported:
name The name of a command to be located.
EXIT STATUS
The following exit values are returned:
0 Successful completion.
>0 One or more name operands were not located or an error occurred.
FILES
~/.cshrc source of aliases and path values
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO csh(1), attributes(5)DIAGNOSTICS
A diagnostic is given for names which are aliased to more than a single word, or if an executable file with the argument name was not found
in the path.
NOTES
The which utility is not a shell built-in command.
BUGS
To compensate for ~/.cshrc files in which aliases depend upon the prompt variable being set, which sets this variable to NULL. If the
~/.cshrc produces output or prompts for input when prompt is set, which can produce some strange results.
SunOS 5.11 30 Mar 2005 which(1)