Sponsored Content
The Lounge What is on Your Mind? Which category do you belong to? Post 302998123 by bakunin on Thursday 25th of May 2017 01:22:35 PM
Old 05-25-2017
Quote:
Originally Posted by Peasant
This was an no harm intended update, since that was on my mind Smilie

I like to to script most of my work as an admin: not because of the development process itself but because this way i can assure i can enjoy my bbq while stuff does itself as it should
Actually, you are right and while i appreciate your (successful, i give you that) attempt at being funny you actually voiced a deeper truth than you might even have considered: we are in (actually at the core of) the automatisation business: computers are so widespread and we have so much well-paid work to do because they do things automatically we would otherwise have to do ourselves.

I fail to see why everything should be automated using computers but us - who make that all possible - should slave and do our work manually. I am a fairly good typist, but i like to picture myself as being even better at thinking than at typing - so i rather think of ways to minimise the typing than to type more just to be able to avoid thinking. If i can enjoy some BBQ in the time i freed for myself this way - all the better!

bakunin
These 3 Users Gave Thanks to bakunin For This Post:
 

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 SYNOPSIS
#include <poll.h> int poll(struct pollfd fds[], nfds_t nfds, int timeout); DESCRIPTION
poll() examines a set of file descriptors to see if some of them are ready for I/O or if certain events have occurred on them. The fds argu- ment is a pointer to an array of pollfd structures, as defined in <poll.h> (shown below). The nfds argument specifies 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. events Events to poll for. (See below.) revents Events which may occur or have occurred. (See below.) The event bitmasks in events and revents have the following bits: POLLERR An exceptional condition has occurred on the device or socket. This flag is output only, and ignored if present in the input events bitmask. POLLHUP The device or socket has been disconnected. This flag is output only, and ignored if present in the input events bitmask. Note that POLLHUP and POLLOUT are mutually exclusive and should never be present in the revents bitmask at the same time. POLLIN Data other than high priority data may be read without blocking. This is equivalent to ( POLLRDNORM | POLLRDBAND ). POLLNVAL The file descriptor is not open. This flag is output only, and ignored if present in the input events bitmask. POLLOUT Normal data may be written without blocking. This is equivalent to POLLWRNORM. POLLPRI High priority data may be read without blocking. POLLRDBAND Priority data may be read without blocking. POLLRDNORM Normal data may be read without blocking. POLLWRBAND Priority data may be written without blocking. POLLWRNORM Normal data may be written without blocking. The distinction between normal, priority, and high-priority data is specific to particular file types or devices. If timeout is greater than zero, it specifies a maximum interval (in milliseconds) to wait for any file descriptor to become ready. If timeout is zero, then poll() will return without blocking. If the value of timeout is -1, the poll blocks indefinitely. RETURN VALUES
poll() 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 call, the fds array will be unmodified and the global variable errno will be set to indicate the error. ERRORS
poll() will fail if: [EAGAIN] Allocation of internal data structures fails. A subsequent request may succeed. [EFAULT] Fds points outside the process's allocated address space. [EINTR] A signal is delivered before the time limit expires and before any of the selected events occurs. [EINVAL] The nfds argument is greater than OPEN_MAX or the timeout argument is less than -1. BUGS
The poll() system call currently does not support devices. SEE ALSO
accept(2), connect(2), connectx(2), kevent(2), read(2), recv(2), select(2), send(2), write(2) HISTORY
The poll() function call appeared in AT&T System V UNIX. BSD
March 18, 2015 BSD
All times are GMT -4. The time now is 11:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy