Sponsored Content
Full Discussion: dup()
Top Forums Programming dup() Post 9603 by vinchen on Tuesday 30th of October 2001 09:05:51 PM
Old 10-30-2001
Power

Thank you very much people.

Smilie
 

7 More Discussions You Might Find Interesting

1. Programming

fork() and dup()

I have met this code: switch(fork()) { case 0: close(1); dup(p); close(p); close(p); execvp(<whatever>); perror("Exec failed"); } Can anyone tell me what this piece of code does? Thx alot.. (1 Reply)
Discussion started by: AkumaTay
1 Replies

2. Programming

Understanding the purpose of dup/dup2

I'm having difficulty understanding the purposes of using dup/dup2 when involving forks. for example, if we call fork() once, that is, we are creating a child process. In what cases would we need to use dup or dup2 to duplicate the file descriptors for standard output and standard error? What... (1 Reply)
Discussion started by: Yifan_Guo
1 Replies

3. Programming

dup()

when i want to replace standard output with output file int out; out = open("out", O_WRONLY)p; dup2(out,1); What Shall I do in case of appending??? I am using here O_WRONLY TO WRITE.BUT IF i wanna append, whats the word? (5 Replies)
Discussion started by: joey
5 Replies

4. Red Hat

ping error (DUP!)

Ntop is running on redhat. But It gives DUP! error while pinging to any places I dont know why DUP! error is occured. # ping google.com PING google.com (74.125.39.147) 56(84) bytes of data. 64 bytes from fx-in-f147.1e100.net (74.125.39.147): icmp_seq=1 ttl=44 time=54.1 ms 64 bytes from... (6 Replies)
Discussion started by: getrue
6 Replies

5. Shell Programming and Scripting

Identify duplicates and update the last 2 digits to 0 for both the Orig and Dup

Hi, I have a requirement where I have to identify duplicates from a file based on the first 6 chars (It is fixed width file of 12 chars length) and whenever a duplicate row is found, its original and duplicate row's last 2 chars should be updated to all 0's if they are not same. (I mean last 2... (3 Replies)
Discussion started by: farawaydsky
3 Replies

6. Shell Programming and Scripting

How to count dup records in file?

Hi Gurus, I need to count the duplicate records in file file abc abc def ghi ghi jkl I want to get below result: abc ,2 abc, 2 def ,1 ghi ,2 ghi, 2 jkl ,1 or abc ,2 def ,1 (3 Replies)
Discussion started by: ken6503
3 Replies

7. UNIX and Linux Applications

Deja-dup make my / full. So I cannot restore my back up

The problematic directory is the following: /root/.cache/deja-dup This directory grows until my "/" is full and then the restoring activity fails. I already tried to create a symbolic link with origin another partition where I have more space. However during the restoring activity ... (4 Replies)
Discussion started by: puertas12
4 Replies
ZNOL(1) 						      General Commands Manual							   ZNOL(1)

NAME
znol - notify via Zephyr upon login or logout of interesting people SYNOPSIS
znol [ on|off ] [ -f file ] [ -u username ] [ -l ] [ -q ] DESCRIPTION
Znol provides a way for you to be notified when "interesting" people log in or out. It uses the Zephyr(1) Notification Service, which causes a message to appear on your screen for every person specified in a namelist (which defaults to $HOME/.anyone). The namelist should have one login name per line. Any line starting with `#' is considered a comment and ignored. Anyone in the namelist who is logged in when znol is executed is printed to stdout. The control arguments are as follows: on|off Turns notification on or off. -f The namelist file is taken to be file. If file is "-", then the standard input is used instead of a file. If file does not exist, an error message is printed, and znol exits. This option may not be used in conjunction with the -u option. -l Causes znol to just list the people in the namelist who are currently logged in, without subscribing to the login messages. This option may not be used in conjunction with the -q option. -q Disables printing who is currently logged in when subscribing. This option may not be used in conjunction with the -l option. -u Instead of reading a file to specify the "interesting" users, the next argument is used as the only "interesting" user. This option may not be used in conjunction with the -f option. EXAMPLES
znol reads the standard namelist file, prints the locations of any users named therein which can be found on the system, and enters subscrip- tions for notices about those users. znol -l -u foo prints the location (if visible) of the user 'foo'. FILES
$HOME/.anyone SEE ALSO
anyone(SIPB), nol(SIPB), zctl(1), zephyr(1), zwgc(1), zhm(8), zephyrd(8) Project Athena Technical Plan Section E.4.1, `Zephyr Notification Service' AUTHOR
Robert S. French (MIT-Project Athena) RESTRICTIONS
Copyright (c) 1987,1988 by the Massachusetts Institute of Technology. All Rights Reserved. zephyr(1) specifies the terms and conditions for redistribution. MIT Project Athena July 1, 1988 ZNOL(1)
All times are GMT -4. The time now is 11:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy