Sponsored Content
Full Discussion: Profile file bash
Operating Systems Solaris Profile file bash Post 302718135 by sai_2507 on Friday 19th of October 2012 07:41:54 AM
Old 10-19-2012
Profile file bash

Hi Experts,

Profile file was not found for one of the users on solaris box.

Default shell is bash for the user.

Code:
<prod>>:/home/produser:[!]:echo $SHELL
/usr/bin/bash
<prod>>:/home/produser:[!]:ls -lta |grep bash
-rw-------   1 produser prod        4157 Oct 19 17:32 .bash_history
<prod>>:/home/produser:[!]:

Wanted to set some environment variables for the user.

How to set env variable for this user? should I proceed with manual creation of .bash_profile file?

Is there anything that I missed at the time of user creation which resulted in .bash_profile file not being created?

Thanks in Advance for your help!!!

Last edited by Scott; 10-19-2012 at 08:46 AM.. Reason: Code tags, please...
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

changed .profile but didnt ./.profile, yet reflected changes

hi , i added ls -F to .profile. and i need to do ./.profile for the effect to take effect BUT i didnt and YET the next day when i came to work and log in, the changes took effect. i am on aix. please explain.. thanks (4 Replies)
Discussion started by: yls177
4 Replies

2. Shell Programming and Scripting

Can I modify the .bashrc file instead of .profile file to customize my login?

Hello, I got this question which tells me to customize my login script. Some people in the forums suggested to modify the .profile file in my home directory. I did so, but none of my customizations show up when I open the terminal after. So, I tried to modify other files in my home directory,... (1 Reply)
Discussion started by: Hyunkel
1 Replies

3. UNIX for Dummies Questions & Answers

Setting up Bash profile

Hi, I have a SunOS -s 5.9 Generic_118558-39 sun4u sparc SUNW,Sun-Fire-V210 system. I need to set up my .bash_profile. I need to do the following thins. 1) set up history 2) Set up VI as my editor 3) Display the current directory at the prompt. I have tried using the set command, the... (1 Reply)
Discussion started by: kaushys
1 Replies

4. Infrastructure Monitoring

trap in etc/profile and user .profile

Hello I really wonder what's trap in etc/profile and in each user .profile. I try to google for it but I think I have no luck. Mostly hit is SNMP traps which I think it is not the same thing. I want to know ... 1. What's a "trap 2 3" means and are there any other value I can set... (4 Replies)
Discussion started by: Smith
4 Replies

5. Solaris

How do i permanently set bash profile??

Hi all, I don't want to enter below command on solaris every time. How do i permanently set this command on Solaris. I know that this operation is a piece of cake on redhat because there is a /etc/rc.local file on it. But Solaris ???? bash-3.00#export PS1="\e (2 Replies)
Discussion started by: getrue
2 Replies

6. Solaris

After giving Bash the .profile settings are not working

I am using Solaris ... I have some settings in my .profile and in .profile iam calling some scripts. After i logged in to that box if i gave "bash" and proceed with my shorcuts(alias) are not working . (3 Replies)
Discussion started by: girija
3 Replies

7. Red Hat

bash profile question

Hello, I'm new to RHEL and I was wondering where the prompt setup is from? This what it looks like: # I like this setup but I would like to add some color to it. I looked in the .profile, .bash_profile and .bashrc. I don't see anything in these files that give me the above prompt. So I looked... (2 Replies)
Discussion started by: bitlord
2 Replies

8. Shell Programming and Scripting

Update ksh .profile to launch bash

Hi I don't have chsh option. I want to launch bash instead of ksh ( or launch bash from ksh .profile) how can I do this ? (1 Reply)
Discussion started by: Sivaswami
1 Replies

9. Red Hat

Bash profile

Hi I noticed that my bash profile has duplicate entries. For example there are two entries for the variable $APP_HOME = /app/soft/install $APP_HOME =/app/software/install Will this have any impact ? Please advise (2 Replies)
Discussion started by: nathan_nathan
2 Replies

10. UNIX for Dummies Questions & Answers

Alias does not work with bash profile

Hi, Below is what i have in my profile: alias wldm='cd /opt/app/wls' If i use bash or ksh shell this alias does not work. What should be done for this alias to work with all these simultaneously -> No Shell, bash shell, and ksh shell (14 Replies)
Discussion started by: mohtashims
14 Replies
Profile(3)						User Contributed Perl Documentation						Profile(3)

NAME
DBIx::Profile - DBI query profiler Version 1.0 Copyright (c) 1999,2000 Jeff Lathan, Kerry Clendinning. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. SYNOPSIS
use DBIx::Profile; or "perl -MDBIx::Profile <program>" use DBI; $dbh->printProfile(); DESCRIPTION
DBIx::Profile is a quick and easy, and mostly transparent, profiler for scripts using DBI. It collects information on the query level, and keeps track of first, failed, normal, and total amounts (count, wall clock, CPU time) for each function on the query. NOTE: DBIx::Profile use Time::HiRes to clock the wall time and the old standby times() to clock the CPU time. The CPU time is pretty coarse. DBIx::Profile can also trace the execution of queries. It will print a timestamp and the query that was called. This is optional, and occurs only when the environment variable DBIXPROFILETRACE is set to 1. (ex: (bash) export DBIXPROFILETRACE=1). Not all DBI methods are profiled at this time. Except for replacing the existing "use" and "connect" statements, DBIx::Profile allows DBI functions to be called as usual on handles. Prints information to STDERR, prefaced with the pid. RECIPE
1) Add "use DBIx::Profile" or execute "perl -MDBIx::Profile <program>" 2) Optional: add $dbh->printProfile (will execute during disconnect otherwise) 3) Run code 4) Data output will happen at printProfile or $dbh->disconnect; METHODS
printProfile $dbh->printProfile(); Will print out the data collected. If this is not called before disconnect, disconnect will call printProfile. setLogFile $dbh->setLogFile("ProfileOutput.txt"); Will save all output to the file. AUTHORS
Jeff Lathan, lathan@pobox.com Kerry Clendinning, kerry@deja.com Aaron Lee, aaron@pointx.org Michael G Schwern, schwern@pobox.com SEE ALSO
L<perl(1)>, L<DBI> perl v5.8.0 2001-12-17 Profile(3)
All times are GMT -4. The time now is 01:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy