01-22-2009
Many thanks for all the help, its now working a treat.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello all,
I have the below script and I'm a little stuck on the best way to continue.
Essentially I'm creating a text file (systems.txt) with a list of servers in it by hostname. Then I would like to echo a menu with each hostname and a number to use to pick it from the list. It's somehow... (7 Replies)
Discussion started by: sysera
7 Replies
2. Shell Programming and Scripting
Hi folks,
I have the following function ,which generates menu for installation type:
select_install_type()
{
echo
echo ========================================
echo Please select the type of installation:
echo ========================================
... (8 Replies)
Discussion started by: nir_s
8 Replies
3. Shell Programming and Scripting
is there a way I can make the menu list reappear when I use select ?
-----
menulist="Change_title Remove_tag Change_tag Add_line Quit"
select word in $menulist #change_title remove_tag change_tag add_line quit
do
case $word in
# first menu option Change Title
... (9 Replies)
Discussion started by: forever_49ers
9 Replies
4. Shell Programming and Scripting
Hello, im taking a class of Unix and i dont really know much about it, im trying to create a list of menu a user would select from and im very lost. Basically it will have 5 options, the user will chose from:
1. list files in the pwd
2. display date and time
3. is the file file or directory
4.... (5 Replies)
Discussion started by: morava
5 Replies
5. Shell Programming and Scripting
The code im having problems with is highlighted in red, upon selecting option 2 on the main menu (highlighted green) my echo "NETWORK CONNECTIVITY" command seems to get overlooked and the resulting output is "Thank you for using the Operator Administrative Tool." being displayed. Can anyone tell me... (2 Replies)
Discussion started by: warlock129
2 Replies
6. UNIX for Dummies Questions & Answers
I want something that would show up basically like:
Menu
-----
1) Option 1
2) Option 2
3) Option 3
Pick one:
I tried menu = " Menu \r\n ----- \r\n 1)Option 1 \r\n..............etc etc etc"
but that didnt work (just got the whole menu one one line, with the... (2 Replies)
Discussion started by: SoVi3t
2 Replies
7. UNIX for Dummies Questions & Answers
hey all, me again....having a problem with my code, where I essentially am trying to show a menu, have the user select an option (from 1 to 5), then display which selection they picked...
#!/bin/bash
# A LIST OF THE ERROR MESSAGES AND THE PROPER SYNTAX:
error_0="Correct amount of... (1 Reply)
Discussion started by: SoVi3t
1 Replies
8. Red Hat
Is there a way to create a menu in Gnome terminal to have a list of hosts with ip's like in Putty on Windows? (2 Replies)
Discussion started by: jlouki01
2 Replies
9. Shell Programming and Scripting
Hi all
Only learning so if any mistakes, let me know
I am trying to create a menu box with Whiptail, taking in the variables from a txt.file called Name.txt which has just 4 names listed for now, one below each other..ie
Dave
John
Mike
Mary
Bash script is below and calls the txt... (8 Replies)
Discussion started by: olearydc
8 Replies
LEARN ABOUT OSF1
acl_init
acl_init(3) Library Functions Manual acl_init(3)
NAME
acl_init - Allocate and initialize ACL internal working storage
LIBRARY
Security Library (libpacl.a)
SYNOPSIS
#include <sys/acl.h>
acl_t acl_init( const size_t size);
PARAMETERS
Specifies the size of the working storage in bytes.
DESCRIPTION
NOTE: This function is based on Draft 13 of the POSIX P1003.6 standard.
The acl_init() function allocates and initializes working storage for an ACL of at least size bytes. A pointer to the working storage is
returned. When the area is first allocated, it contains a ACL that has no ACL entries.
RETURN VALUES
Upon successful completion, the acl_init() function returns a pointer to the working storage. Otherwise, a NULL pointer is returned and
errno is set to indicate the error.
ERRORS
If any of the following conditions occur, the acl_init() function returns a value of NULL and sets errno to the corresponding value: The
acl_t to be returned requires more memory than allowed by the hardware or system-imposed memory management constraints. The function is
not supported by the implementation.
RELATED INFORMATION
acl_add_perm(3), acl_clear_perm(3), acl_create_entry(3), acl_free(3)
Security delim off
acl_init(3)