Problem in updating .profile file in HP-UX B.11.00 machine


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Problem in updating .profile file in HP-UX B.11.00 machine
# 1  
Old 02-07-2008
Problem in updating .profile file in HP-UX B.11.00 machine

Hello All,

I am using a HP-UX machine and I want to update the .profile file so that after login to my userID that will be applicable to my ID also. What I am trying to do is :

In .profile file I am trying to write in /home/userID folder:
export PATH=$PATH:$HOME:.

so that whenever I will login to the system my home folder will automatically be added in the PATH environment variable.

Waiting for a response

Thanks & Regards
Abhishek
# 2  
Old 02-07-2008
If you are using the Korn shell, I suggest you add add it to your .kshrc

Code:
export PATH=$HOME:$PATH

# 3  
Old 02-07-2008
Thanks for your quick response, but I am using bash shell. Please suggest me for bash shell
# 4  
Old 02-07-2008
Hello Friend,

Problem is resolved now.
Actually while login and running bash shell it was not calling .profile file.
So I have written a .bash_profile in which I called my .profile file and it's working now.

Thank you for your cooperation
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. AIX

Problem after updating the firmware!

Hello AIX experts, I have 7038-6M2 server, its operating system is AIX 5.2, and its firmware is 3K041021 After some searching on net, I tried to update its firmware level to 3K080425, so I downloaded the required rpm, and followed the steps. After rebooting the server, it stopped and an error... (6 Replies)
Discussion started by: Mohannad
6 Replies

2. Shell Programming and Scripting

problem in creating execute profile file in unix

first i created a profile file(my_var.profile) which contains export my_var=20 after that i created shell scripts(my_var.sh) which contains #!/bin/bash . ./my_var.profile echo '$my_var='$my_var but when i am executing sh my_var.sh it is showing error that no such file/directory .profile.... (6 Replies)
Discussion started by: pratikjain998
6 Replies

3. Solaris

I can't copy any file to any machine | abort problem | freezing

I want to copy tar file to another machine. tar size is 4gb. Firstly I tried copy to windows machine with ftp client but copy operation didn't start. Now I have tryied to copy to solaris machine command with scp but copy was freezed. Picture is attached.... (1 Reply)
Discussion started by: getrue
1 Replies

4. Shell Programming and Scripting

problem in creating my own profile file in unix

I am new in shell scripting. currently i am using cygwin. My problem is i created a profile file in my own folder. file name is first.profile in which i gave following values to variable export a=10 now i am executing this profile file by below command ./.first.profile it executed... (4 Replies)
Discussion started by: pratikjain998
4 Replies

5. BSD

Firewall Build: Problem Updating, Patching

In building a firewall, I need to update and patch the operating system after the initial install. However, the compiler and sources should never be on a firewall PC. So what is the best way to do this ? This firewall PC has 2 identical drives; I was thinking of performing 2 installs, updating... (2 Replies)
Discussion started by: larsuuber
2 Replies

6. Shell Programming and Scripting

awk updating one file with another, comparing, updating

Hello, I read and search through this wonderful forum and tried different approaches but it seems I lack some knowledge and neurones ^^ Here is what I'm trying to achieve : file1: test filea 3495; test fileb 4578; test filec 7689; test filey 9978; test filez 12300; file2: test filea... (11 Replies)
Discussion started by: mecano
11 Replies

7. Shell Programming and Scripting

Updating Profile from script

I am trying to figure a way to update an environmental variable in my .profile from script. I have a variable name CON_DIR in my .profile. I want to be able to update this variable directly via another unix script. Any ideas? Thanks. (5 Replies)
Discussion started by: artfuldodger
5 Replies

8. Post Here to Contact Site Administrators and Moderators

Error updating profile

I'm trying to update my profile with a temp e-mail address. This is a hotmail e-mail address and it wont allow it. The reason for this is I've changed my service with my ISP since I've moved :D and well I've gone form Cable to DSL :mad: Now my e-mail accounts are still there but I can't... (4 Replies)
Discussion started by: woofie
4 Replies
Login or Register to Ask a Question