1758620 Members
1956 Online
108874 Solutions
New Discussion

getusershell

 
Yaroki
Super Advisor

getusershell

Hello,

 

Qouting from man getusershells:

 

if /etc/shells does not exist or is not readable, getusershells() returns the standart shells.

 

I holds HP-UX B.11.11 and I would like to now how to use the getusershells.

 

BR,

 

Yali

2 REPLIES 2
James R. Ferguson
Acclaimed Contributor

Re: getusershell

Hi:

 

What do you want to do?  If you want to use 'getusershell()' either write some C-code or write a shell script to read '/etc/shells'.  By default, '/etc/shells' does not exist, but you are at liberty to create your own even if it only contains the standard shells as documented.

 

Regards!

 

...JRF...

Dennis Handly
Acclaimed Contributor

Re: getusershell

While there isn't a program fragment under getusershell(3), you should be able to use getusershell(3), setusershell(3) and endusershell(3) to do I/O for each shell.