Sponsored Content
Full Discussion: output to terminal
Top Forums Programming output to terminal Post 41775 by andreis on Tuesday 14th of October 2003 09:30:03 AM
Old 10-14-2003
Thank you for your reply
I'm asking because I've seen something along these lines done. The program is writing warnings each minute for a period of time to all the consoles that are running a specific process. From the list of procs it obtains a list of pts. The sending is multithreaded and sincronized by semaphores. I do not know how it actually writes to the other consoles. With nm I get:
...
|FUNC |GLOB |0 |8 |warnuser
|FUNC |GLOB |0 |UNDEF |close
|FUNC |GLOB |0 |UNDEF |strcat
|OBJT |GLOB |0 |ABS |_edata
|FUNC |GLOB |0 |UNDEF |write
|FUNC |GLOB |0 |UNDEF |sleep
|FUNC |GLOB |0 |UNDEF |sema_wait
|FUNC |GLOB |0 |UNDEF |atexit
|FUNC |GLOB |0 |8 |main
|FUNC |GLOB |0 |UNDEF |fputs
|FUNC |GLOB |0 |UNDEF |fgets
|OBJT |GLOB |0 |9 |_lib_version
|OBJT |GLOB |0 |17 |___Argv
|FUNC |GLOB |0 |UNDEF |strlen
|FUNC |GLOB |0 |UNDEF |_cleanup
|FUNC |GLOB |0 |8 |_start
|FUNC |GLOB |0 |UNDEF |strtok
|FUNC |GLOB |0 |UNDEF |thr_create
|OBJT |GLOB |0 |ABS |_etext
|FUNC |GLOB |0 |UNDEF |sprintf
|FUNC |GLOB |0 |UNDEF |open
|FUNC |GLOB |0 |11 |_init
|OBJT |WEAK |0 |14 |environ
|OBJT |GLOB |0 |14 |thr_sync
|FUNC |GLOB |0 |UNDEF |exit
|OBJT |GLOB |0 |ABS |_DYNAMIC
|OBJT |GLOB |0 |ABS |_end
|FUNC |GLOB |0 |12 |_fini
|FUNC |GLOB |0 |UNDEF |fclose
|OBJT |GLOB |0 |UNDEF |errno
|FUNC |GLOB |0 |UNDEF |__fpstart
|FUNC |GLOB |0 |UNDEF |fopen
|FUNC |GLOB |0 |UNDEF |sema_post
|FUNC |GLOB |0 |UNDEF |system
|OBJT |GLOB |0 |ABS |_GLOBAL_OFFSET_TABLE_
|OBJT |GLOB |0 |14 |_environ
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Output to terminal and file at the same time

Hi all The makefile of a large project produces hundreds of lines of output, which I can't look at any more when the build is finished. If I simply redirect the output to a file, I can't see the progress of the building process... Is there a possibility to redirect the output to a file and at... (1 Reply)
Discussion started by: Charlie
1 Replies

2. Solaris

terminal output - save to file?

I have a window open on my ultra 10 - a terminal window connecting to a server. Is there any way I can log all output to this window to a log file on my ultra 10 ? (2 Replies)
Discussion started by: frustrated1
2 Replies

3. Solaris

how to redirect my output in a new terminal

Hi all, i type a command along with dtterm what i would like to have is that the output of the command to be shown in the new terminal . Any Idea on how to acheive this? (0 Replies)
Discussion started by: Sayantan
0 Replies

4. UNIX for Advanced & Expert Users

Terminal Output to a File ??

Hey, How can I transfer the terminal output to a file ? For example : command "fuser" returns the "process-id" and prints the output on the terminal, but I want that output to a file as well. How can I do that ? /clocal/mqbrkrs/user/mqsiadm/sanjay/AccessMonitor $ fuser -uf... (2 Replies)
Discussion started by: varungupta
2 Replies

5. Shell Programming and Scripting

How can I scroll the terminal output with Expect

Hi, I'm trying to come up with a simple expect script that allows me to login to a system and run a single command ... something like this: #!/usr/bin/expect -f # let's set some variables #set password set ipaddr set ponumber set hostname set timeout -1 # let's now connect to the... (0 Replies)
Discussion started by: danielsf
0 Replies

6. Shell Programming and Scripting

Truncate terminal output

Hello Using BASH under Ubuntu 10.4 lts + XMonad My script is almost perfect but i'm stuck at the last hurdle: I need a sort of modified 'echo' which truncates its output to the width of the terminal I can find the terminal's width with 'stty size' but i dont know how to then convert input... (2 Replies)
Discussion started by: scyptnex
2 Replies

7. Shell Programming and Scripting

Redirecting script output to terminal

When ever i started my terminal,Every time I have to change the directory like "cd user/documents/ravi/folder2/folder3" Without typing this entire command every time ,I placed "alias c='cd user/documents/ravi/folder2/folder3'" in .bash_profile file. so that i can able to execute command 'c'... (6 Replies)
Discussion started by: Raviteja saddal
6 Replies

8. Shell Programming and Scripting

Redirect output from terminal

i make a shell script. There has a line wget https://cisofy.com/files/lynis-2.1.0-88394c1affb9e23bd7390098947b3fd4b04e35e8.tar.gzWhen this line execute terminal show some text like this Resolving cisofy.com (cisofy.com)... 149.*.*.* Connecting to cisofy.com (cisofy.com)|149.*.*.*|:4444...... (4 Replies)
Discussion started by: Devils-ey3
4 Replies

9. Shell Programming and Scripting

All output to terminal pager by default

How can I have all my output to a terminal pager by default. I want all output to pause once screen is full. Piping to more does not work if the app/script is interactive (2 Replies)
Discussion started by: aydj
2 Replies

10. Shell Programming and Scripting

Print Terminal Output Exactly how it Appears in the Terminal to a New Text File

Hello All, I have a text file containing output from a command that contains lots of escape/control characters that when viewed using vi or view, looks like jibberish. But when viewed using the cat command the output is formatted properly. Is there any way to take the output from the cat... (7 Replies)
Discussion started by: mrm5102
7 Replies
All times are GMT -4. The time now is 09:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy