Sponsored Content
Top Forums UNIX for Advanced & Expert Users Redirecting output to remote monitor over TCP/IP. Post 302284452 by vbe on Thursday 5th of February 2009 01:53:54 PM
Old 02-05-2009
From the ouput like:
Code:
$ oslevel
4.2.1.0
$ who -uA|grep vbe
vbe         pts/8       Feb  5 19:32     .       61790  (ant)        
$

you can find my terminal session:
Code:
*                                                                             *
*******************************************************************************
Last unsuccessful login: Fri Aug 29 10:00:41 2008 on /dev/pts/21 from ant
Last login: Thu Feb  5 19:32:05 2009 on /dev/pts/8 from ant

$ who -uA|grep vbe
vbe         pts/8       Feb  5 19:32    0:01     61790  (ant)        
vbe         pts/21      Feb  5 19:35     .       51778  (ant)        
$ ll /etc/motd
-rwxrwxrwx   1 bin      bin          960 Feb 10 2004  /etc/motd
$ cat /etc/motd>pts/8
No such file or directory
ksh: pts/8: cannot create
$ ll /dev/pts/8
crw--w--w-   1 vbe      staff     34,  8 Feb  5 19:33 /dev/pts/8
$ id
uid=90(vbe) gid=1(staff)
$ cat /etc/motd>/dev/pts/8
$

on my other session (/dev/pts/8):
Code:
spooladm    pts/17      Aug 29 07:20     .       35924  (:0.0)          
spooladm    pts/18      Aug 29 07:20    old      36182  (:0.0)          
spooladm    pts/19      Aug 29 07:20     .       36440  (:0.0)          
spooladm    pts/20      Jan  5 13:48    old      54466  (:0.0)          
$ oslevel
4.2.1.0
$ who -uA|grep vbe
vbe         pts/8       Feb  5 19:32     .       61790  (ant)        
$ *******************************************************************************
*                                                                             *
*                                                                             *
*  Welcome to AIX Version 4.2  STATION  OPAGE  51  !!!!       *
*                                                                             *
*  VOUS ETES SUR   E S C A L A  "T"  IP ADDR = xxx.xx.xx.51  BONNE JOURNEE   *
*                                                                             *
*  Please see the README file in /usr/lpp/bos for information pertinent to    *
*  this release of the AIX Operating System.                                  *
*                                                                             *
*                                                                             *
*******************************************************************************

...
It seems to work...
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Redirecting output to TCP port

Hi All, I suspect this is simple but I cannot find any info on it. I have a logfile on a solaris box (EMS) that I want to tail -f but I want the output of this to be redirected to a TCP port. I have a second solaris box (PEM) running patrol enterprise manager that I am using as an alarm... (1 Reply)
Discussion started by: mscomms
1 Replies

2. UNIX for Dummies Questions & Answers

Redirecting the startup output

Is there any way to redirect the output of the startup of a sun E250. Im basically trying to troubleshoot some init scripts and it would be useful to have a log of the startup output. (3 Replies)
Discussion started by: blakmk
3 Replies

3. UNIX for Advanced & Expert Users

TCP port scanner for remote or for local

I am unable to find any TCP scanner for data captruing for a Remote or local server. Can anybody please help. i need it to read TCP port and capture the incoming/outgoing data , (3 Replies)
Discussion started by: fahadsiddiqui
3 Replies

4. Shell Programming and Scripting

Redirecting OUTPUT

Hi, I want to move the output of a command/script to a file as well as to to be displayed on stdout. Can anybody help me in this. Thanks in advace .. -Chanakya M (1 Reply)
Discussion started by: Chanakya.m
1 Replies

5. Shell Programming and Scripting

monitor remote file output

Greetings all, How to monitor the output of a file on a remote server. I want to use tail -f file... but the file is on a remote server, lets say server4 and Im working on server2. any ideas ??? (5 Replies)
Discussion started by: yahyaaa
5 Replies

6. Shell Programming and Scripting

A bi directional script that will monitor the TCP/IP connections between two physical

Dear All , I'm looking for a unix script that will monitor the TCP/IP connections between two physical ip addresses and when it dectes an IP is down it generates an alarm and sends SMS to mobile numbers. Can any one help, I need this urgently. Waiting for positive replies.. ... (3 Replies)
Discussion started by: samura
3 Replies

7. Shell Programming and Scripting

Redirecting output to file

Hi, Below is the whole string which is to be redirected to the new file. su - oracle -c "exp $user/$pass file=/oracle/oradata/backup/exp_trn_tables_`date +%d_%b_20%y_%H_%M_%S`.dmp log=/oracle/oradata/backup/exp_trn_tables_`date +%d_%b_20%y_%H_%M_%S`.log tables=table1,table2 statistics=none" ... (3 Replies)
Discussion started by: milink
3 Replies

8. Slackware

X terminal: Redirecting remote sound to my local audio device

Hello everybody, I'm testing some aspects of X Terminal implementation and it's going great. I can use remote applications on my local slow workstation at remote's processor speed by redirecting the remote DISPLAY variable to "my_local_ip:0.0"; but i'm having troubles to get remote audio and... (2 Replies)
Discussion started by: semash!
2 Replies

9. Shell Programming and Scripting

Redirecting the output

For example, if we run the below command, symcfg list -thin -pool , results in an output most of the times and if the out is generated i'm able to redirect the output to a file. but sometimes it doesnt result any output and even though the output is being redirected, i can see "No Thin Pools "... (2 Replies)
Discussion started by: web2moha
2 Replies

10. Shell Programming and Scripting

awk remote multiple hosts print remote hostname and output

Hi all, i'm trying to gether multiple pattern on remote hosts, and trying to print hostname and the pattern, ssh remoteserver1 -C 'hostname 2>&1;cat /var/log/server1.log | awk -F ";" '"'"'{ print " "$2" "$5}'"'"'| sort | uniq -c | sort -g -r ' The output is the following, remoteserver1 ... (8 Replies)
Discussion started by: charli1
8 Replies
tcp-environ(5)							File Formats Manual						    tcp-environ(5)

NAME
tcp-environ - TCP-related environment variables DESCRIPTION
The following environment variables describe a TCP connection. They are set up by tcp-env, tcpclient, and tcpserver. Note that TCPLOCAL- HOST, TCPREMOTEHOST, and TCPREMOTEINFO can contain arbitrary characters. PROTO The string TCP. TCPLOCALHOST The domain name of the local host, with uppercase letters converted to lowercase. If there is no currently available domain name for the local IP address, TCPLOCALHOST is not set. TCPLOCALIP The IP address of the local host, in dotted-decimal form. TCPLOCALPORT The local TCP port number, in decimal. TCPREMOTEHOST The domain name of the remote host, with uppercase letters converted to lowercase. If there is no currently available domain name for the remote IP address, TCPREMOTEHOST is not set. TCPREMOTEINFO A connection-specific string, perhaps a username, supplied by the remote host via 931/1413/IDENT/TAP. If the remote host did not sup- ply connection information, TCPREMOTEINFO is not set. TCPREMOTEIP The IP address of the remote host. TCPREMOTEPORT The remote TCP port number. SEE ALSO
tcpclient(1), tcpserver(1), tcp-env(1), tcp(4) tcp-environ(5)
All times are GMT -4. The time now is 06:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy