How to force Xmanager to execute .profile?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting How to force Xmanager to execute .profile?
# 1  
Old 02-21-2010
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 ????
# 2  
Old 02-21-2010
To make all users on a system get the settings you want you would put your changes into /etc/profile, you can then surround those extra entries with a test for if the user is in a telnet or X session, depending on what Unix you are using you may have ptree (Solaris) or pstree (Linux) followed by $$ for the current PID and what the parent processes are.
# 3  
Old 02-22-2010
i don't need to put it in /etc/profile i need the script to run for an individual user and i put it in the .profile successfully.
i just need to make the .dtprofile run the script as well as the .profile
# 4  
Old 02-22-2010
Set the DTSOURCEPROFILE variable in the .dtprofile as:

Code:
DTSOURCEPROFILE=true

# 5  
Old 02-22-2010
i've enabled DTSOURCEPROFILE=true but the the result was very bad. once i enter the user name and password the X windows close
# 6  
Old 02-22-2010
Have you tried to source the .profile in the /.dtprofile?
# 7  
Old 02-22-2010
Make the last line in the .dtprofile file read:
Code:
DTSOURCEPROFILE=true

~/.profile will then get sourced as well.
See:
Solaris Common Desktop Environment: Advanced User's and System Administrator's Guide
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Xmanager 4 not able to connect to Solaris11

I am trying to connect via Xmanager 4 to a T4-2 server running Solaris 11. I checked the /etc/gdm.custom.conf file. The error I get is The MAC (Message Authentication Code) of packet is incorrect When I start the Xmanager on soalris I get a message /dev/fb (file or directory) does not... (2 Replies)
Discussion started by: Maqsood Mohamme
2 Replies

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

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

4. HP-UX

[Solved] Xmanager on HP-UX

Hello all, please can you help me to configure XManager XDMCP connection so i can connect to my HP-UX OS. Regards, (6 Replies)
Discussion started by: beayni33
6 Replies

5. Linux

xmanager

For remote console logging purpose we use X-manager for Solaris environment. How X-manager config for Linux systems. I want to get Linux desktop to remote pc. that is not ssh or telnet. Please help me. (0 Replies)
Discussion started by: saga499
0 Replies

6. Linux

Xmanager

I am unable to view the GUI mode of the Fedora Linux machine through the Xmanager. I don't have issues in viewing my Solaris boxes. Please let me know if anything needs to be done about this? (3 Replies)
Discussion started by: chrisanto_2000
3 Replies

7. UNIX for Dummies Questions & Answers

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 ... (2 Replies)
Discussion started by: Venky
2 Replies

8. UNIX for Dummies Questions & Answers

Xmanager UNIX HP_OpenView

***** I running Solaris 9 and Xmanager 2.0 ***** Hey guys, Newbie question... I'm trying to get HP OpenView's X Windows GUI to load on my WinXP machine. I know another guy at work is running Xmanager 1.3 (I have 2.0) and when he types ovw& on the server it loads the OpenView GUI on his... (4 Replies)
Discussion started by: kingdbag
4 Replies

9. Solaris

Xmanager

hi everybody want to access a SOLARIS system with an X Client ( or server ) ( Called Xmanager)...i think all xclients opearate the same way. Problem : i have the error Xdmcp connection failed when i launch it! help please! PS: all i have done is just giving Xmanager the IP of the... (4 Replies)
Discussion started by: hmaiida
4 Replies

10. UNIX for Dummies Questions & Answers

Xmanager

Hi All, I am a real newbie to this so forgive me if I ask anything which may sound silly. I have a SunFire V1120 installed with Solaris 8 on it. I have Xmanager loaded onto my pc and i want to use this to connect to this box. However Xmanager doesn't recognise the box, but I can telnet to it no... (1 Reply)
Discussion started by: joe27
1 Replies
Login or Register to Ask a Question