Helllo Everyone,
I am new to Fedora and am running F18. I found a very simple script online here:
http://bash.cyberciti.biz/time-and-d...t-user-script/
I have created a greeting file /usr/sbin/greeting.sh and have included the path to .bash_profile:
Code:
#.bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
.
So I am using CentOS 6.3 a fresh install and I was trying to add things to my path for OpenMPI so I edited my .bash_profile file to read:
FOO='test'
export FOO
# Add support for MPI
PATH=$PATH:/usr/lib64/openmpi/bin
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
Which apparently isn't being read when I start up a bash shell, my $PATH is without the /usr
I haven't coded in ksh in forever and this script is proving me not a great coder. I keep getting unexpected end of file when I try to execute this...Line 94 is the last line of the code..
#!/usr/bin/ksh
.
I have a user, say user1 which has modifications to its .bash_profile, one of them changing the PATH, eg: export PATH=/some/place:$PATH. This change works fine if I log on as user1 or do a su - user1.
But if I try to run a command via su as root, eg:
su -c test.sh oracle
(test contains echo $PATH)
It doesn't seem to have the modified PATH (or the root's PATH, for that matter).
I have a CentOS 5.7 web server, and I want to change the default place I land in when connecting using SSH.
Currently I land in /home/username, and I want to land in /home instead.
I've gone in as root and added PermitUserEnvironment yes to /etc/.ssh/sshd_config - and as I understand it this then sweeps the user's own ssh folder for an environment file.
I have OSX 10.8.2 with ZSH as my shell and iTerm as a terminal (don't know if the last thing is relevant).
Actually I have just installed gsutil by following the instructions here.
But now when I am typing gsutil at command prompt I am getting following:
No command was given.
Choose one of -b, -d, -e, or -r to do something.
I'm pretty new to Apache Tomcat and somewhat new to Linux altogether. I am trying to install the JDK, which is a prereq for Apache Tomcat. I downloaded and untarred the JDK to /usr/java and now I'm trying to set the environment path.
Doomcide wrote:anonymous_user wrote:I just realized that when using CDM, my .bash_profile does not get sourced. Any workaround for this (other than putting everything in .bashrc)?Same here...Edit: A workaround would be to add source /home/USERNAME/.bash_profile to ~/.xinitrcMy .bash_profile gets sourced.