Sponsored Content
Full Discussion: practice scripting
Top Forums UNIX for Dummies Questions & Answers practice scripting Post 302566411 by vbe on Thursday 20th of October 2011 10:07:16 AM
Old 10-20-2011
Yes replying to threads here!
Its time race...
Smilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Samba Practice

I have a dual boot machine with both "Windoze ME" and Redhat Linux 7.2. I want to know if it is possible to practice with the Samba Suite on a dual boot machine if I was able to incorporate using IP addresses. I was thinking if your able to ping yourself why wouldn't you be able to administer... (3 Replies)
Discussion started by: bilal_aa
3 Replies

2. UNIX for Dummies Questions & Answers

practice tests- Unix Korn Shell Scripting

Hi, I am about to take certification for "Unix Korn Shell Scripting", which is conducted by brain bench. ( http://www.brainbench.com/xml/bb/common/testcenter/taketest.xml?testId=46) The test consists of 40 single and multiple choice questions that must be answered in 60 minutes. The pass mark... (0 Replies)
Discussion started by: eswasas
0 Replies

3. Shell Programming and Scripting

shell scripting practice

Hi , I am new to shell scripting and want to practice some examples. Can anyone tell me any site that works as a tutorial and I can have lot of ready examples for practice. This would hel-p me in understanding the shell scripting faster. Thanks (4 Replies)
Discussion started by: himvat
4 Replies

4. Shell Programming and Scripting

What is the best practice?

I'm playing the shell game of moving and deleting files to make room for current DB backup. A set of files gets moved to serverB when serverA threshold is exceeded. I created two scripts one for serverA and one for serverB. Both scripts are run by cron entry. There is a difference of 12 minutes... (4 Replies)
Discussion started by: BigSky
4 Replies

5. Shell Programming and Scripting

best practice please

I have a data file that I tail and dump the data into a new file at midnight. To work I had to use tail -n2 livefile.csv >> storefile.csv. This is ging me 2 or 3 entries at a time into the storefile.csv. if I continue this then I will have to run a second pass on the file to remove the... (4 Replies)
Discussion started by: Mikey
4 Replies

6. Programming

how to practice my c++ skill

Hi all, I'v already read some basic books about c++ such as <c++ primer>,<The C++ standard library> etc.,and as we know,knowledge is easy to forget without practicing,so i wanna know some ways to practice my skill with programming.First,i know some ACM sites,however,solving problems on those sites... (4 Replies)
Discussion started by: homeboy
4 Replies

7. UNIX for Dummies Questions & Answers

hp ux practice

hi i am new in unix.i have installed linux in my pc,but i want to practice and be expatise in hp ux.but i have no hp server for do it.how could i practice hp ux?please help and give suggestion. (1 Reply)
Discussion started by: dipanjan123
1 Replies

8. Shell Programming and Scripting

Practice Linux Scripting

hey everyone, does anyone here have any good sites, or book recommendations that give you practice scripts to write? It's hard for me to think of scripts that I should write for practice. I've written a small backup script, but I'd rather have a source that gives me ideas, and practice for... (1 Reply)
Discussion started by: Lost in Cyberia
1 Replies

9. Shell Programming and Scripting

Need Software to practice Shell scripting

Hi, I need a software in Windows to practice Shell scripting and unix commands. Please let me know. I have used Putty in Office network. Can it be used on single machine. If yes, How can I configure it. Thanks. (5 Replies)
Discussion started by: Nikhath
5 Replies

10. HP-UX

LVM PE. Best practice

Hi everyone. Unfortunately I can't find advice's about LVM Physical Extent for HPUX. As far as I know we can set for 1PE size from 1MB to 256 MB. But in what cases it should be different? Maybe exist any strict rules, requirements or any best practice? (2 Replies)
Discussion started by: jess_t03
2 Replies
GETPROTOENT(3)						     Linux Programmer's Manual						    GETPROTOENT(3)

NAME
getprotoent, getprotobyname, getprotobynumber, setprotoent, endprotoent - get protocol entry SYNOPSIS
#include <netdb.h> struct protoent *getprotoent(void); struct protoent *getprotobyname(const char *name); struct protoent *getprotobynumber(int proto); void setprotoent(int stayopen); void endprotoent(void); DESCRIPTION
The getprotoent() function reads the next entry from the protocols database (see protocols(5)) and returns a protoent structure containing the broken-out fields from the entry. A connection is opened to the database if necessary. The getprotobyname() function returns a protoent structure for the entry from the database that matches the protocol name name. A connec- tion is opened to the database if necessary. The getprotobynumber() function returns a protoent structure for the entry from the database that matches the protocol number number. A connection is opened to the database if necessary. The setprotoent() function opens a connection to the database, and sets the next entry to the first entry. If stayopen is nonzero, then the connection to the database will not be closed between calls to one of the getproto*() functions. The endprotoent() function closes the connection to the database. The protoent structure is defined in <netdb.h> as follows: struct protoent { char *p_name; /* official protocol name */ char **p_aliases; /* alias list */ int p_proto; /* protocol number */ } The members of the protoent structure are: p_name The official name of the protocol. p_aliases A NULL-terminated list of alternative names for the protocol. p_proto The protocol number. RETURN VALUE
The getprotoent(), getprotobyname() and getprotobynumber() functions return a pointer to a statically allocated protoent structure, or a null pointer if an error occurs or the end of the file is reached. FILES
/etc/protocols protocol database file ATTRIBUTES
For an explanation of the terms used in this section, see attributes(7). +-------------------+---------------+------------------------------+ |Interface | Attribute | Value | +-------------------+---------------+------------------------------+ |getprotoent() | Thread safety | MT-Unsafe race:protoent | | | | race:protoentbuf locale | +-------------------+---------------+------------------------------+ |getprotobyname() | Thread safety | MT-Unsafe race:protobyname | | | | locale | +-------------------+---------------+------------------------------+ |getprotobynumber() | Thread safety | MT-Unsafe race:protobynumber | | | | locale | +-------------------+---------------+------------------------------+ |setprotoent(), | Thread safety | MT-Unsafe race:protoent | |endprotoent() | | locale | +-------------------+---------------+------------------------------+ In the above table, protoent in race:protoent signifies that if any of the functions setprotoent(), getprotoent(), or endprotoent() are used in parallel in different threads of a program, then data races could occur. CONFORMING TO
POSIX.1-2001, POSIX.1-2008, 4.3BSD. SEE ALSO
getnetent(3), getprotoent_r(3), getservent(3), protocols(5) COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https://www.kernel.org/doc/man-pages/. GNU
2017-09-15 GETPROTOENT(3)
All times are GMT -4. The time now is 09:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy