Sponsored Content
Top Forums Shell Programming and Scripting How to force Xmanager to execute .profile? Post 302397245 by TonyFullerMalv on Sunday 21st of February 2010 03:52:06 PM
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.
 

10 More Discussions You Might Find Interesting

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

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

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

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

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

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

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

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. 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
ptree(1)																  ptree(1)

NAME
ptree - print process trees SYNOPSIS
/usr/bin/ptree [-a] [-c] [-z zone] [pid | user] ... ptree prints the process trees containing the specified pids or users, with child processes indented from their respective parent pro- cesses. An argument of all digits is taken to be a process-id, otherwise it is assumed to be a user login name. The default is all pro- cesses. The following options are supported: -a All. Print all processes, including children of process 0. -c Contracts. Print process contract memberships in addition to parent-child relationships. See process(4). This option implies the -a option. -z zone Zones. Print only processes in the specified zone. Each zone ID can be specified as either a zone name or a numerical zone ID. This option is only useful when executed in the global zone. The following operands are supported: pid Process-id or a list of process-ids. ptree also accepts /proc/nnn as a process-id, so the shell expansion /proc/* can be used to specify all processes in the system. user Username or list of usernames. Processes whose effective user IDs match those given are displayed. Example 1: Using ptree The following example prints the process tree (including children of process 0) for processes which match the command name ssh: $ ptree -a `pgrep ssh` 1 /sbin/init 100909 /usr/lib/ssh/sshd 569150 /usr/lib/ssh/sshd 569157 /usr/lib/ssh/sshd 569159 -ksh 569171 bash 569173 /bin/ksh 569193 bash The following exit values are returned: 0 Successful operation. non-zero An error has occurred. /proc/* process files See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWesu | +-----------------------------+-----------------------------+ |Interface Stability |See below. | +-----------------------------+-----------------------------+ The human readable output is Unstable. The options are Evolving. gcore(1), ldd(1), pargs(1), pgrep(1), pkill(1), plimit(1), pmap(1), preap(1), proc(1), ps(1), ppgsz(1), pwd(1), rlogin(1), time(1), truss(1), wait(1), fcntl(2), fstat(2), setuid(2), dlopen(3C), signal.h(3HEAD), core(4), proc(4), process(4), attributes(5), zones(5) 11 Oct 2005 ptree(1)
All times are GMT -4. The time now is 10:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy