04-11-2013
Yes, that's my idea|hope.
(I have never met the Tru64 OS.)
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Don't want to use useradd command to create a new user
I am doing manual addition of accounts. Actually I am writing a script and I am working on RedHat7.1 system. What I am trying to do is run the script and pass all the values of the username password and group as command line parameters. Now... (2 Replies)
Discussion started by: syedifti
2 Replies
2. UNIX for Dummies Questions & Answers
Hi!!,
I am on HP UX -11. I have created a new group and want to assign some the users to this group without changing their existing group ( The new group is the secondary group for them)
Any ideas how to do it??
SAM doesnt seem to be working.. Any way of doing it from command line??
... (1 Reply)
Discussion started by: jyotipg
1 Replies
3. Shell Programming and Scripting
guys
i have a unix user (say "x") which is also an application owner ..thru this user i manage most (90 %) of my tasks related to application i.e application down/up,processes stop/start etc..in short i manage my "tuxedo" via this user..
now
i want a new user to be created (on my name) which... (7 Replies)
Discussion started by: abhijeetkul
7 Replies
4. Solaris
Hi
i am a newbie on Sun Solaris system. for the above topic, creating a user profile for telnet, ftp through command line, may i know what the command is? and the way of creating the user profile.? (2 Replies)
Discussion started by: yewping
2 Replies
5. Solaris
Pre: no gpasswd/adduser
there is just usermod can be used, also there is no -a option for usermod.
How should I add a user into a group? (4 Replies)
Discussion started by: a2156z
4 Replies
6. Infrastructure Monitoring
Hello
I really wonder what's trap in etc/profile and in each user .profile.
I try to google for it but I think I have no luck. Mostly hit is SNMP traps which I think it is not the same thing.
I want to know ...
1. What's a "trap 2 3" means and are there any other value I can set... (4 Replies)
Discussion started by: Smith
4 Replies
7. Shell Programming and Scripting
hi,
i am new to shell scripts
i write a shell script to create multiple users but i need to give passwords to that users while creating users, command to write this script (1 Reply)
Discussion started by: DONFOX
1 Replies
8. Red Hat
HI,
I have two Linux servers on which IBM Sterling ConnectDirect is installed. I want to transfer a file from server(abc20) to abc19.
I have edited userfile.cfg & netmap.cfg on both the server still file transfer is not happening. Also the file is getting transferred from abc20 to abc20 itself... (5 Replies)
Discussion started by: ABM_CD
5 Replies
9. AIX
Hello, I find out that there is a way from putty to pass a command to your shell when trying to log in to a server and bypass .profile. Actually you can do this if you open a bash shell. The command to bypass .profile is the following: ssh -t hostname "bash --noprofile" Is there a way to... (32 Replies)
Discussion started by: omonoiatis9
32 Replies
10. UNIX for Beginners Questions & Answers
Hi Guys,
I want a script where in I need to send an email to individual users about their groups.
OS:unix redhat
Shell :Bash.
The mail should be like,"Hi &username , you are in part of &group1,&group2 .."
I need to mail to their personal email id mostly @outlook. Not to their UNIX.... (1 Reply)
Discussion started by: vijay2107
1 Replies
LEARN ABOUT OSF1
setservent_r
setservent(3) Library Functions Manual setservent(3)
NAME
setservent, setservent_r - Open or rewind the services file
LIBRARY
Standard C Library (libc.so, libc.a)
SYNOPSIS
#include <netdb.h>
void setservent( int stay_open);
[Tru64 UNIX] The following function is supported in order to maintain backward compatibility with previous versions of the operating sys-
tem. int setservent_r( int stay_open, struct servent_data *serv_data);
[Tru64 UNIX] The following function is supported in order to maintain backward compatibility with previous versions of the operating sys-
tem.
int setservent( int stay_open);
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
setservent(): XNS4.0
Refer to the standards(5) reference page for more information about industry standards and associated tags.
PARAMETERS
Indicates when to close the services file. Specifying a value of 0 (zero) causes the file to be closed after each call to the getservent()
function. Specifying a nonzero value allows the file to remain open after each call. [Tru64 UNIX] Points to a structure where setser-
vent_r() stores information about the services file.
DESCRIPTION
The setservent() (set service entry) function opens either the local /etc/services file or the NIS distributed services file, and sets the
file marker at the beginning of the file. To determine which file or files to search, and in which order, the system uses the switches in
the /etc/svc.conf file.
NOTES
[Tru64 UNIX] The setservent_r() function is the reentrant version of the setservent() function. It is supported in order to maintain
backward compatibility with previous versions of the operating system. Upon successful completion, the setservent_r() function returns a
value of 0 (zero). Otherwise, it returns a value of -1.
[Tru64 UNIX] Before calling the setservent_r() function for the first time, you must zero-fill the servent_data structure. The netdb.h
header file defines the servent_data structure.
RETURN VALUES
Current industry standards for setservent() do not define return values.
[Tru64 UNIX] Upon successful completion, the setservent() function included for backward compatibility returns a 1 for success. Other-
wise, it returns a value of 0 (zero).
ERRORS
Current industry standards for setservent() do not define error values.
[Tru64 UNIX] If any of the following conditions occurs, the setservent_r() function sets errno to the corresponding value: If serv_data is
invalid.
In addition, the setservent() and setservent_r() functions can fail to open the file. In this case, errno will be set to the failure.
FILES
Contains service names. The database service selection configuration file.
RELATED INFORMATION
Functions: endservent(3), getservbyname(3), getservbyport(3), getservent(3).
Files: services(4), svc.conf(4).
Networks: nis_intro(7).
Standards: standards(5). delim off
setservent(3)