Sponsored Content
The Lounge What is on Your Mind? Which category do you belong to? Post 302988846 by wisecracker on Tuesday 3rd of January 2017 04:09:22 PM
Old 01-03-2017
I can't really poll on this as I don't fit anywhere.

I am a mere amateur who likes working in the worst case. I like finding the limits of languages without using extra external libraries to do my tasks. I have abandoned Python because there is a library for just about everything a programmer needs, these things make life easy. I am hooked on Shell Scripting and haven't even scratched the surface yet after 3 years of experimentation.
Am I capable of being an admin? NO!
Am I developer? Well yes and no.
I don't consider myself good enough to code something like Audacity but I am quite capable of coding to hit the hardware where it hurts hardest in some languages that were not designed for the task. ;o)
Am I management material? Absolutely not, if I can't get my hands dirty then I am not interested.
Why do I code? Purely to learn something different from my profession, (a retired), Electronics Engineer.
Could I set up and maintain a serious server farm? NO! End of story.
Could I set up and maintain a tiny private network? Yes, but that makes me no expert by any stretch of the imagination.

So an extra section for the pure amateur:-

Amateur with no absolute knowledge of any one part of computer science, but willing to learn.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

listing files that do not belong to current date

How do we list all the file names in a directory that does not belong to current date. (1 Reply)
Discussion started by: esh.mohan
1 Replies

2. UNIX for Dummies Questions & Answers

listing files that does not belong to current date

How do we list all the file names in a directory that does not belong to current date. (3 Replies)
Discussion started by: esh.mohan
3 Replies

3. Post Here to Contact Site Administrators and Moderators

How to change the category?

Hi, I submitted my blog on UNIX in the links section. On submitting, i chose the category as Unix/Linux standards, which i now feel is incorrect. I would like to change the category of my link, but i don't find any option to change the category. Please help me in doing the needful. Thanks... (7 Replies)
Discussion started by: guruprasadpr
7 Replies

4. Shell Programming and Scripting

Split file into given category and others using awk

Hi All, Would it be possible using awk to split a given file into two files based on a certain condition such that one output file will contain all lines that fit the condition while the other output file will contain lines that did not fit the condition? Here is a sample input file ... (6 Replies)
Discussion started by: cympaulife
6 Replies

5. Shell Programming and Scripting

Listing files that belong to a certain year date?

I'm trying to list files, first by size and I'm using something like this ls -l|awk '{print $5,$6,$7,$8,$9|"sort -nr"}'|more Now I'd like to just do the same listing but only for files with the year 2009 in the $8 field or even anything less than 2011. (5 Replies)
Discussion started by: NycUnxer
5 Replies

6. Shell Programming and Scripting

extract the max value category

Hi, I have a file and I want the category for each row to be its highest value. gene highest medium lower lowest ABC 20 30 50 70 DEF 90 20 60 0 o/p gene highest medium lower lowest category ABC... (6 Replies)
Discussion started by: Diya123
6 Replies

7. UNIX for Dummies Questions & Answers

ldap , search groups that user belong

i want run query to identify witch groups that user A belong, CN=name,CN=Users,DC=mydomain ?? (1 Reply)
Discussion started by: prpkrk
1 Replies

8. Shell Programming and Scripting

Data filtering and category assigning

Please consider the following file, I have many groups which can be of 3 types, T1 (Serial_Number 1) T2 (Serial_Number 2) and T1*T2 (all other Serial_Number). I want to only consider groups that have both T1 and T2 present and their values are different from each other. In the example file,... (8 Replies)
Discussion started by: jianp83
8 Replies

9. Shell Programming and Scripting

Category and count with awk

I want to categorize and count the as below: Input file: A1 G1 C1 F1 A2 G1 C1 F1 A3 G1 C1 F2 A4 G1 C2 F2 A7 G1 C2 F2 A8 G1 C2 F3 A11 G1 C2 F3 A23 G1 C2 F3 B4 G1 C2 F3 AC4 G2 C3 F4 B6 G2 C4 F4 BB5 G2 C4 F4 A25 G2 C5 F4 B13 G2 C5 F5 D12 G2 C5 F5 D2 G2 C5 F5 (3 Replies)
Discussion started by: aydj
3 Replies

10. UNIX for Beginners Questions & Answers

Delete records that do not belong to that day

i have a requirement to delete records that do not belong to that day. For example in a file that came on July 31st ,2018 there are records that belong to Aug 1st,2018 as well and I want to find and delete those records. I want to delete anything with 01-Aug-2018. I have several files like that. I... (6 Replies)
Discussion started by: Priya
6 Replies
POLL(2) 						      BSD System Calls Manual							   POLL(2)

NAME
poll -- synchronous I/O multiplexing LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#include <poll.h> int poll(struct pollfd fds[], nfds_t nfds, int timeout); int ppoll(struct pollfd fds[], nfds_t nfds, const struct timespec * restrict timeout, const sigset_t * restrict newsigmask); DESCRIPTION
The poll() system call examines a set of file descriptors to see if some of them are ready for I/O. The fds argument is a pointer to an array of pollfd structures as defined in <poll.h> (shown below). The nfds argument determines the size of the fds array. struct pollfd { int fd; /* file descriptor */ short events; /* events to look for */ short revents; /* events returned */ }; The fields of struct pollfd are as follows: fd File descriptor to poll. If fd is equal to -1 then revents is cleared (set to zero), and that pollfd is not checked. events Events to poll for. (See below.) revents Events which may occur. (See below.) The event bitmasks in events and revents have the following bits: POLLIN Data other than high priority data may be read without blocking. POLLRDNORM Normal data may be read without blocking. POLLRDBAND Data with a non-zero priority may be read without blocking. POLLPRI High priority data may be read without blocking. POLLOUT POLLWRNORM Normal data may be written without blocking. POLLWRBAND Data with a non-zero priority may be written without blocking. POLLERR An exceptional condition has occurred on the device or socket. This flag is always checked, even if not present in the events bitmask. POLLHUP The device or socket has been disconnected. This flag is always checked, even if not present in the events bitmask. Note that POLLHUP and POLLOUT should never be present in the revents bitmask at the same time. POLLNVAL The file descriptor is not open. This flag is always checked, even if not present in the events bitmask. If timeout is neither zero nor INFTIM (-1), it specifies a maximum interval to wait for any file descriptor to become ready, in milliseconds. If timeout is INFTIM (-1), the poll blocks indefinitely. If timeout is zero, then poll() will return without blocking. The ppoll() system call, unlike poll(), is used to safely wait until either a set of file descriptors becomes ready or until a signal is caught. The fds and nfds arguments are identical to the analogous arguments of poll(). The timeout argument in ppoll() points to a const struct timespec which is defined in <sys/timespec.h> (shown below) rather than the int timeout used by poll(). A null pointer may be passed to indicate that ppoll() should wait indefinitely. Finally, newsigmask specifies a signal mask which is set while waiting for input. When ppoll() returns, the original signal mask is restored. struct timespec { time_t tv_sec; /* seconds */ long tv_nsec; /* and nanoseconds */ }; RETURN VALUES
The poll() system call returns the number of descriptors that are ready for I/O, or -1 if an error occurred. If the time limit expires, poll() returns 0. If poll() returns with an error, including one due to an interrupted system call, the fds array will be unmodified. COMPATIBILITY
This implementation differs from the historical one in that a given file descriptor may not cause poll() to return with an error. In cases where this would have happened in the historical implementation (e.g. trying to poll a revoke(2)ed descriptor), this implementation instead copies the events bitmask to the revents bitmask. Attempting to perform I/O on this descriptor will then return an error. This behaviour is believed to be more useful. ERRORS
An error return from poll() indicates: [EFAULT] The fds argument points outside the process's allocated address space. [EINTR] A signal was delivered before the time limit expired and before any of the selected events occurred. [EINVAL] The specified time limit is invalid. One of its components is negative or too large. SEE ALSO
accept(2), connect(2), kqueue(2), pselect(2), read(2), recv(2), select(2), send(2), write(2) STANDARDS
The poll() function conforms to IEEE Std 1003.1-2001 (``POSIX.1''). The ppoll() is not specified by POSIX. HISTORY
The poll() function appeared in AT&T System V UNIX. This manual page and the core of the implementation was taken from NetBSD. The ppoll() function first appeared in FreeBSD 11.0 BUGS
The distinction between some of the fields in the events and revents bitmasks is really not useful without STREAMS. The fields are defined for compatibility with existing software. BSD
November 13, 2014 BSD
All times are GMT -4. The time now is 02:37 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy