04-19-2018
Quote:
Originally Posted by
RudiC
I can't talk for AIX, and thus am shooting in the dark, but on several other systems any shell to be used needs to be listed in /etc/shells.
Thanks for the reply. There was "/opt/freeware/bin/bash" in /etc/shells. /usr/bin/bash is a link to /opt/freeware/bin/bash. But "/opt/freeware/bin/bash" as initial program does not work, too. Same error message "Value is invalid".
Regards
Burkhard
---------- Post updated at 01:13 PM ---------- Previous update was at 10:19 AM ----------
In AIX there's a list of shells in /etc/security/login.cfg. Now I downloaded bash from IBM (<https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/bash/bash-4.4-3.aix6.1.ppc.rpm>) and this version of bash is now running. But there is the next problem with emacs (new thread).
Regards
Burkhard
---------- Post updated at 01:47 PM ---------- Previous update was at 01:13 PM ----------
Quote:
Originally Posted by
BuSchu
Thanks for the reply. There was "/opt/freeware/bin/bash" in /etc/shells. /usr/bin/bash is a link to /opt/freeware/bin/bash. But "/opt/freeware/bin/bash" as initial program does not work, too. Same error message "Value is invalid".
/etc/shell is not important. Only /etc/security/login.cfg!
Regards
Burkhard
10 More Discussions You Might Find Interesting
1. AIX
As Valgrind announced, 3.3.0 and 3.3.1 version can support AIX 5.3.
But I met a block issue when I used Valgrind on AIX
After installing Valgrind3.3.1 successfully on AIX5.3, I typed the following command of Valgrind:
valgrind -d --tool=memcheck ls
Then, the following result from Valgrind is... (0 Replies)
Discussion started by: adasong
0 Replies
2. UNIX for Dummies Questions & Answers
is there a different command to display contents of a file on the output in bash shell? i tried more and it does not work. (7 Replies)
Discussion started by: npatwardhan
7 Replies
3. Advertise with Us
Hi
I am an <meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 9"><meta name="Originator" content="Microsoft Word 9"><link rel="File-List"... (0 Replies)
Discussion started by: kimyo
0 Replies
4. UNIX for Dummies Questions & Answers
I'm going through "learning the bash shell" by newham and rosenblatt. I'm trying to ctro-O to execute and then go on to the next command in the history list, ctrl-o again, etc. (I'm just trying to get a feel for it in case I want to use it). But ctrl-o does nothing. Can someone help me out as to... (5 Replies)
Discussion started by: Straitsfan
5 Replies
5. AIX
Greetings Aix gurus,
I have been appointed the task to port my SAS environment on HP-UX to AIX...
I have been able to solve most issues but I am stuck with the following lines (these were easy to find, since in shell scripts but I found out that there are plenty more and encapsulated in SAS... (1 Reply)
Discussion started by: vbe
1 Replies
6. AIX
Hi.
I created schell script for sending messages to some processes in AIX:
#!/bin/sh
BSE=/infor/ERPLN/bse
BSE_TMP=/infor/ERPLN/bse/tmp
export BSE BSE_TMP
for i in `ps -eo pid,comm | grep bshell | cut -f 1 -d " "`
do
/something $i
done
Unfortunatelly this script does not work on... (6 Replies)
Discussion started by: giovanni
6 Replies
7. AIX
Hey all. My h50 is up, but now i need some guidance.
How to i get X11 (X-Windows0 working on the system, so i can use the H50 via my main pc? is that makes sense. The X11 system is installed, but i am lost as how to get it working
Can anyone please help? (2 Replies)
Discussion started by: ADS2459
2 Replies
8. Shell Programming and Scripting
Hi All,
I am looking here from any one.
I am preparing script for create user and set password to remote servers.
I have made password less. and able to add user and also able to set entry in /etc/shadow. But it does not make complete entry in shadow file. it lefts initial... (6 Replies)
Discussion started by: yash_message
6 Replies
9. UNIX for Beginners Questions & Answers
Repeat this text in a file named notes.txt and run the script
Before bash is a good language a blank line appears
Also, the following notes are displayed incorrectly
What is bad?
==================================
Title : Note 1
==================================
Category: Computer
Date... (3 Replies)
Discussion started by: cesar60
3 Replies
10. Shell Programming and Scripting
I have AiX system version 6.1
I wish the below find command to work on AiX system ksh shell and give similar output as this works fine on RedHat Linux centos 7.
find /app/logs/fname1.out -printf "%M %u %TY-%Tm-%Td %TH:%TM %h/%f $(cksum<fname1.out | cut -d' ' -f1)\n"
Output:
-rw-r--r--... (7 Replies)
Discussion started by: mohtashims
7 Replies
LEARN ABOUT SUNOS
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/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/pfcsh
/usr/bin/pfksh /usr/bin/pfsh
/usr/bin/sh /usr/bin/tcsh
/usr/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.
SunOS 5.10 30 Aug 2004 getusershell(3C)