• Increase font size
  • Default font size
  • Decrease font size
Home Software SysFunc Sysfunc Reference Guide - User interaction

Sysfunc Reference Guide - User interaction

E-mail Print
Read : 9,595 times
(1 vote, average 5.00 out of 5)
Article Index
Sysfunc Reference Guide
Configuration parameters
System database
Disk management
Error handling
File manipulation
Filesystems
IP V4 addresses
Kernel
Logical volume manager
Miscellaneous
Message display
User interaction
Network
OS
File backup
Software packages
Services
Time and date
Temporary file management
Users and groups
Vmware-specific
Function index
All Pages

ask

Ask a question to the user

Arguments

$1 Question

Returns

Always 0

Displays

message to stderr, answer to stdout

yn_question

Asks a 'yes/no' question, gets answer, and return yes/no code

Works at least for questions in english, french, and german : Accepts 'Y', 'O', and 'J' for 'yes' (upper or lowercase), and anything different is considered as 'no'

If the $sf_forceyes environment variable is set, the user is not asked and the 'yes' code is returned.

Arguments

$1 Question string

Returns

0 for 'yes', 1 for 'no'

Displays

Question and typed answer if $sf_forceyes not set, nothing if $sf_forceyes is set.

 

Please login or register to add a comment