07-05-2005
7 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Am trying to learn a scripting language to automate mundane system admin tasks. Being a Novice, Just trying to understand, which language would be easier to learn and one for all types.
i.e Perl or Shell scripting. Which of these would be good for a system admin, Database admin ??
pls. post... (2 Replies)
Discussion started by: Crazy_murli
2 Replies
2. Shell Programming and Scripting
I do not know UNIX shell scripting so as an alternative which language would you think is better for daily System Administration tasks. Perl or PHP? I know a little about both. (5 Replies)
Discussion started by: blackopus
5 Replies
3. What is on Your Mind?
:confused:perl,python,ruby..which one is the best language...?
all are welcomed to comment but i would request to the SYSTEM ADMINISTRATORS who have yaers of programming,scripting experience to comment...site admins plz i am looking forward to see your comments also ...:):) (3 Replies)
Discussion started by: shekhar_4_u
3 Replies
4. Ubuntu
Is there any way to create an SMTP mail server will all granular permissions to it so that I can read emails which that server receives through any scripting language and also reply from the same server automatically? (3 Replies)
Discussion started by: sandeepcm
3 Replies
5. Shell Programming and Scripting
hi
i am student and i learn computer sciences
i need to write a script that can will be execute automatically when a user logs on a computer, and will be automatically disconnect after a duration that i will determine
can somebody help me
thank (1 Reply)
Discussion started by: Thucydide
1 Replies
6. Shell Programming and Scripting
Hello,
I want to know which shell scripting language (like AWk, Perl or any other) is the best for parsing and editing
1) space or Comma Separated Datsets
2) XML type Datasets. (1 Reply)
Discussion started by: ajayram
1 Replies
7. UNIX for Dummies Questions & Answers
Hi everyone ,
Can anyone tell me which is the Best scripting language for Aix/unix and why.
Thanks
N K Chand (1 Reply)
Discussion started by: nkchand
1 Replies
LEARN ABOUT OPENSOLARIS
getusershell
getusershell(3C) Standard C Library Functions getusershell(3C)
NAME
getusershell, setusershell, endusershell - get legal user shells
SYNOPSIS
#include <unistd.h>
char *getusershell(void);
void setusershell(void);
void endusershell(void);
DESCRIPTION
The getusershell() function returns a pointer to a legal user shell as defined by the system manager in the file /etc/shells. If
/etc/shells does not exist, the following locations of the standard system shells are used in its place:
/bin/bash /bin/csh
/bin/jsh /bin/ksh
/bin/ksh93 /bin/pfcsh
/bin/pfksh /bin/pfsh
/bin/sh /bin/tcsh
/bin/zsh /sbin/jsh
/sbin/pfsh /sbin/sh
/usr/bin/bash /usr/bin/csh
/usr/bin/jsh /usr/bin/ksh
/usr/bin/ksh93 /usr/bin/pfcsh
/usr/bin/pfksh /usr/bin/pfsh
/usr/bin/sh /usr/bin/tcsh
/usr/bin/zsh /usr/sfw/bin/zsh
/usr/xpg4/bin/sh
The getusershell() function opens the file /etc/shells, if it exists, and returns the next entry in the list of shells.
The setusershell() function rewinds the file or the list.
The endusershell() function closes the file, frees any memory used by getusershell() and setusershell(), and rewinds the file /etc/shells.
RETURN VALUES
The getusershell() function returns a null pointer on EOF.
BUGS
All information is contained in memory that may be freed with a call to endusershell(), so it must be copied if it is to be saved.
NOTES
Restricted shells should not be listed in /etc/shells.
SunOS 5.11 1 Nov 2007 getusershell(3C)