We just got a machine with pre installed AIX 4.3.3.
It's and oldish RS/6000 F80.
When I power it on, the boot sequence advances finely, until it says
Welcome to AIX, closing stdin and stdout, or something like that.
From that point on the diagnostic display keeps counting the usual way for... (3 Replies)
Hi
I need to schedule some tasks on AIX.
At first I must copy files from folder on second AIX server to my primary server. This job schould be done in 1 hour intervals. I want to get only new files.
Second script is needed for old files cleaning. It is necesary to delete files older than... (3 Replies)
Hello,
I am new to Solaris.
I have installed a Solaris 10.0.
As default its shell is sh (#) and I want to modify boot records of my Solaris. I want to run some shell scripts, change shell, change PATH environment and similiar things after boot automaticially.
I don't know which files are read... (1 Reply)
Hi guys,
Got a tiny bit of a problem on one of our servers here at work. I installed AIX 5.3 on the server and that went fine. Then I upgraded to ML 5300-05-01, but now the system just hangs on boot.
The system starts up and the monitor comes on in few minutes, but a few seconds later when... (6 Replies)
I have two systems in my computer . I update the ubuntu system these days and always interrupt it and exit the system . now the system cannot boot after Running local boot scripts(/etc/rc.local), it just stops there. i have to terminate the gnome display manager. what can i do with it ? thank... (0 Replies)
We have a RS6000, model B50, type 7046, where I installed AIX 4.3.3
But, if the power goes off, the operating system does not restart,
and I have to go there and push the button to start AIX again.
Is there any way this procedure to be avoided,
this is, I want the AIX to start automatically... (9 Replies)
Hello i searched in google and it seems i cannot find a detailed instruction on how to setup autorun-ing custom shell script upon boot up, someone kind enough to point me to a link? or a guide. We use Solaris 10.
Basically my script just contains sending email when system bootup. (3 Replies)
Good afternoon there,
One of my friend gave me an old IBM 44P Model 170 (I've planned to use it to learn AIX that I don't know at all) (I know a bit GNU/Linux (Debian, Archlinux, Red Hat, Slackware)).
But, unfortunately, the computer doesn't start properly and I don't have any idea why ;(.
... (6 Replies)
Server: Redhat 6.2
Goal: Startup script/Shutdown Script
Overview: I'm just doing a very basic test. I'm not getting chkconfig involved.
Research so far: I've found a few different ways of getting this to work, some say I can just drop the scripts in the corresponding rc directory. Others... (4 Replies)
Discussion started by: HayekSplosives1
4 Replies
LEARN ABOUT OPENSOLARIS
endusershell
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)