Sponsored Content
Top Forums UNIX for Dummies Questions & Answers not able to execute .profile /.kshrc Post 65689 by Venky on Tuesday 8th of March 2005 08:26:17 AM
Old 03-08-2005
not able to execute .profile /.kshrc

Hi,
I m new to Solaris CDE...earlier i was using Windows.
Here is my problem..

i know that whatever the initial settings we need to execute,we can place them in .profile file.

in my home dir (/home/venki),i have following files for that.
.profile
.profile.user
.kshrc
.kshrc.user

and in .profile & .kshrc,its mentioned that dont edit this file..instaed use .user file..
so,i understand that .user is my private and should use that..


which file i should use for my settings ?(.kshrc.user/.profile.user) ?do i need to replace user by my userid?(eg. .profile.venki)
my login shell is KORN.



and the main problem i m facing is i m not able to execute .profile.user/.kshrc.user
( i given execute permission)..
i m getting the err message as below.

$. .profile.user
/usr/dt/bin/.: permission denied.


Can anybody pls help me out.

Thanks in advance,
Venki..
 

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

kshrc

An odd problem using .kshrc, if I run with this in my home login directory it works fine other than if I use 'man', where each word of the manual entry is on a seperate line ?. I'm using AIX 5.3 (it worked fine on 5.2). Anyone seen this before ? (3 Replies)
Discussion started by: gefa
3 Replies

3. Shell Programming and Scripting

.profile not reading .kshrc

Can anyone tell me why .profile would not be reading my .kshrc file? O/S is SCO 5.06? I've placed echo's before & after setting ENV and nothing ... help? Thanks! Here's .profile ================================================== : # DoubleVision Pro's digiboard call during... (7 Replies)
Discussion started by: gseyforth
7 Replies

4. Shell Programming and Scripting

korn shell .kshrc in sunos

Hi, My login shell is c shell I have a line in .cshrc like setenv a 1000 I have a line in .profile like ENV=$HOME/.kshrc export ENV and in my .kshrc a=10 export a I wrote one korn script #!/bin/ksh echo $a (3 Replies)
Discussion started by: shahnazurs
3 Replies

5. Shell Programming and Scripting

.kshrc is not executing

Hi, I am facing two problems in my environment. Anyone can help on this? Thanks in advance. Problem 1 --------- When i login into my new unix system, only the .profile is executing. .kshrc is not executing. But my default shell is .ksh Any setup to be changed ? Problem 2... (7 Replies)
Discussion started by: senthil_is
7 Replies

6. 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

7. Shell Programming and Scripting

How to force Xmanager to execute .profile?

hello all i created a login scrip and add it successfully to .profile now i need to force this .profile to be executed if the user login using xmanager not a normal telnet best regards ---------- Post updated at 09:05 AM ---------- Previous update was at 03:25 AM ---------- Ant updates ???? (10 Replies)
Discussion started by: islam.said
10 Replies

8. 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

9. Solaris

How to execute a ".profile" depending on the server from where the user is connected.

Hello, I have two Solaris servers on a cluster. I have created the same user "X"on the two nodes (same UID and same GID). The file ".profile" of this user "X" is located in a filesystem that is seen by the two nodes. Each server should have a ".profile" of this user different of the other... (6 Replies)
Discussion started by: adilyos
6 Replies

10. UNIX for Beginners Questions & Answers

Kshrc custom prompt will not work

So Yesterday I switched from Solus Linux to Fedora Linux 30, but I forgot to backup some of my dotfiles including kshrc. I am fairly new to Korn shell and do not know it well, but through memory I was able to at least get this. I did use code from several different source to recreate it. The only... (13 Replies)
Discussion started by: zoomer
13 Replies
remove profile(1m)														remove profile(1m)

NAME
remove profile - Removes all profile elements and the profile from the specified name service entry SYNOPSIS
rpccp remove profile profile-entry-name [-s syntax] OPTIONS
Indicates the name syntax of the entry name (optional). The only value for this option is the dce name syntax, which is the default name syntax. Until an alternative name syntax becomes available, specifying the -s option is unnecessary. ARGUMENTS
Indicates the name of the target profile. For an entry in the local cell, you can omit the cell name and specify only the cell-relative name. DESCRIPTION
The remove profile command removes a profile (and all of its elements) from the name service database. The entry name of the profile is required. Privilege Required You need write permission to the CDS object entry (the target profile entry). NOTE
This command is replaced at Revision 1.1 by the dcecp command and may not be provided in future releases of DCE. EXAMPLES
The following commands run RPCCP and remove the profile named /.:/LandS/anthro/molly_o_profile: $ rpccp rpccp> remove profile /.:/LandS/anthro/molly_o_profile RELATED INFORMATION
Commands: add element(1m), remove element(1m), show profile(1m) remove profile(1m)
All times are GMT -4. The time now is 10:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy