Sponsored Content
Top Forums UNIX for Advanced & Expert Users is there a way to find out the tty from which the process is launched Post 302182607 by sleepy_11 on Monday 7th of April 2008 05:01:04 AM
Old 04-07-2008
Question is there a way to find out the tty from which the process is launched

Hi all,
There is an application which can be launched once on our box and there are several suspected users telnet into the system with the same login ID.
Is there a way that i can find out from which tty the application is launched? If so, i can get the user name from the "finger" command.

Thanks in adv.
 

10 More Discussions You Might Find Interesting

1. Programming

Controlling Tty For A Process

I have developed a Code to find out number and name of processes currently running in SunOS Release 5.8 Server. I have used 'prpsinfo' structure to retrieve process details. But however I am unable to decompose the controlling terminal for the processes. The member variable pr_lttydev holds... (1 Reply)
Discussion started by: S.P.Prasad
1 Replies

2. Shell Programming and Scripting

how to find the chid process id from given parent process id

how to find the chid process id from given parent process id.... (the chid process doesnot have sub processes inturn) (3 Replies)
Discussion started by: guhas
3 Replies

3. UNIX for Dummies Questions & Answers

Process launched by user who logs out, continue running ?

Lets say a user starts a process (either a shell script or a Perl script) and before that process finishes, he logs out (either intentionaly or network problems or ...), does the process continu running ? Default shell is Korn. This is because at my job (being trained), there are tasks to run... (2 Replies)
Discussion started by: Browser_ice
2 Replies

4. UNIX for Dummies Questions & Answers

Lastlog and launched process

Hello there, I "discovered" an interesting command lastlog, but I couldn't find, until now:cool:, if it's possible to get a list of the launched process by users and root during a certain of time... ...any idea would be really appreciated!!! Thanks in advance. Giordano Bruno (3 Replies)
Discussion started by: Giordano Bruno
3 Replies

5. Shell Programming and Scripting

Find shell process pid launched throug `at`.

Hi. I was testing some staff and wrote simple script, which only writes date to log every 15 seconds. Like that #1.sh while true;do echo `date` >> 1.log sleep 15 done And than i ran this process with `at -s -f 1.sh now`. And now it is running and i don't know how to catch it. I tryed... (1 Reply)
Discussion started by: kukuruku
1 Replies

6. UNIX for Dummies Questions & Answers

/dev/tty find last modified time

what can I use to find the last modified time of a /dev/tty ? (4 Replies)
Discussion started by: l flipboi l
4 Replies

7. UNIX for Dummies Questions & Answers

Different ways in which applications are Launched.

How does X windows system launch a program? Does X give init a command (fork) or does x give BASH a command? Can/does X interact with init directly or does everything go through BASH? :wall: Thanks in advance! (4 Replies)
Discussion started by: theKbStockpiler
4 Replies

8. Shell Programming and Scripting

[Solved] Process dies when launched in system startup script

Good morning! I'm trying to add Maven to the system boot by the moment without success. Testing the operation of the script I realize that the process isn't persistent when the program is launched with the start option. ---- #Startup Script ---- #! /bin/sh # chkconfig: 345 99 1 #... (5 Replies)
Discussion started by: carpannav
5 Replies

9. Programming

Find parent process (not process ID)

Hi: I have a program written in FORTRAN running on AIX platform. It is because missing of documentation and without root password, therefore we want to modify the program so that we can find out which script/program that call this FORTRAN program. I have google for few days, all of them are... (3 Replies)
Discussion started by: cstsang
3 Replies

10. Shell Programming and Scripting

Python: Redirecting to tty and reading from tty

In bash, you can do something like this: #!/bin/bash echo -n "What is your name? " > /dev/tty read thename < /dev/tty How can I do the same in python? I have a python script that has the following content: #!/usr/bin/python2.7 import getpass import sys import telnetlib import... (2 Replies)
Discussion started by: SkySmart
2 Replies
GRUN(1x)																  GRUN(1x)

NAME
gRun - X/GTK based application launcher. SYNOPSIS
gRun [filename] [-v] [--version] [-h] [--help] DESCRIPTION
gRun launches applications in X Windows without the need for an xterm session at all. gRun provides three methods of launching applica- tions, entering the command directly into the text field, browsing the tree for the application and running an application specified on the command line. In all cases gRun exits completely after launching the application and the application is left running as a full child of the X process, as if it were launched from a WM menu. If gRun is launched from an xterm or shell, the shell will be freed for further use after gRun exits. No more wasting an xterm for the duration of the application. gRun will attempt to complete a command automatically from the history as it is typed in, hopefully saving some time. Pressing the Tab key will try to find an executable file in the path that starts with the characters already entered into the entry box. gRun also includes a facility for checking if the command is in a list of console mode apps, eg telnet. If it finds the command in the file, gRun launches a xterm with the command as the -e parameter. gRun now has a facility for associating file extensions with a command, ala Windows. If an extension is found, the associated application is launched with the command entry as the parameter. Options filename Application name for command line launching from a xterm. The filename must exist within either the default path or have a fully qualified path. Any options passed after the filename are passed down to the application if not removed by gtk_init() --persist gRun dialog does not close after launching application --notips Tooltips are not displayed --version Display the current version number of grun. --help Display a short usage guide. gRun also recognizes all standard X Windows and GTK options, eg -display and -geometry. Bugs None currently known. AUTHOR
Bruce A. Smith <tangomanrulz@geocities.com> COPYING
Copyright (C) 1998,1999 Bruce A. Smith <tangomanrulz@geocities.com> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER- CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. gRun Version 0.9.22 Jan 15, 1999 GRUN(1x)
All times are GMT -4. The time now is 01:58 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy