09-04-2018
This User Gave Thanks to Don Cragun For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have created a main menu in the following way:
while true; do
echo " "
echo "Main Menu: "
echo "Please Select An Option Using The Options Provided."
echo " "
echo "1 - Search All Files"
echo " "
echo "2 - Search Individual Files"
echo " "
... (1 Reply)
Discussion started by: amatuer_lee_3
1 Replies
2. Shell Programming and Scripting
I am attempting to create a shell script with the following capaciblities:
1. Listed options to choice from
2. Use to perform awk statements
3. Print a report with the awk results
My questions are
1. How do I select more than one file for option #5 and #6
2. How to I create an... (11 Replies)
Discussion started by: jroberson
11 Replies
3. Shell Programming and Scripting
How do I add the option to change the path in a menu? I have this script. The user chooses a number and had the option of doing something, looking for log files etc. There is a possibility they might want to look at a different path other than what I have given them such as... (2 Replies)
Discussion started by: taekwondo
2 Replies
4. Ubuntu
hey all,
I already installed nautilus-actions
now , I want to add "print path" script(option) to the right context menu!..
I did :
http://img853.imageshack.us/img853/6973/59818245.png
http://img847.imageshack.us/img847/8758/37217230.png
the script print located in... (2 Replies)
Discussion started by: eawedat
2 Replies
5. 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
6. Shell Programming and Scripting
I have a script which uses READ to detect choice of menu option...now I want to change the script without doing whole rewrite such that when user runs ./script.sh 5 it would execute menu option 5 rather than user running ./script.sh waiting for it to load and then pressing "5 enter"
Is it... (1 Reply)
Discussion started by: holyearth
1 Replies
7. Shell Programming and Scripting
Hello,
Been trying to build a menu with whiptail lately. However, my code doesn't seems to be working even though when i compared to other similar code they looks the same.
#!/bin/bash
clear
whiptail --msgbox "Entering networking sub-menu" 20 78
whiptail --title Networking --menu... (8 Replies)
Discussion started by: malfolozy
8 Replies
8. Shell Programming and Scripting
Here is my script for the menu options.
# Bash Menu Script Example
PS3='Please enter your choice: '
options=("Option 1:" "Option 2:" "Other Reason:" "Quit")
select opt in "${options}"
do
case $opt in
"Option 1 :")
echo "you chose choice 1"
;;
... (3 Replies)
Discussion started by: mohtashims
3 Replies
9. Shell Programming and Scripting
As a result of whiptail menu option I am getting a data from a file.
Naturally it is output to terminal as stdour.
I like to redirect the output back to the menu.
It can be done with single input of line of text , see attached.
I just cannot see where or how the sample... (0 Replies)
Discussion started by: annacreek
0 Replies
10. Shell Programming and Scripting
i need to add 2 string variables into a positioning array , repeatedly - in loop.
First string in $2, second to $3 then up to the desired count incrementing the "position".
Using set -- alone does not increment the count so I end up with 2 variables in the array.
How do I increment the... (7 Replies)
Discussion started by: annacreek
7 Replies
LEARN ABOUT OSF1
pthread_getschedparam
pthread_getschedparam(3) Library Functions Manual pthread_getschedparam(3)
NAME
pthread_getschedparam - Obtains the current scheduling policy and scheduling parameters of a thread.
LIBRARY
DECthreads POSIX 1003.1c Library (libpthread.so)
SYNOPSIS
#include <pthread.h>
int pthread_getschedparam(
pthread_t thread,
int *policy,
struct sched_param *param);
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
IEEE Std 1003.1c-1995, POSIX System Application Program Interface
PARAMETERS
Thread whose scheduling policy and parameters are obtained. Receives the value of the scheduling policy for the thread specified in
thread. Refer to the description of the pthread_setschedparam(3) routine for valid parameters and their meanings. Receives the value of
the scheduling parameters for the thread specified in thread. Refer to the description of the pthread_setschedparam(3) routine for valid
values.
DESCRIPTION
This routine obtains both the current scheduling policy and associated scheduling parameters of the thread specified by the thread argu-
ment.
The priority value returned in the param structure is the value specified in the attr argument passed to pthread_create(3) or by the most
recent call to pthread_setschedparam(3) that affects the target thread.
This routine differs from pthread_attr_getschedpolicy(3) and pthread_attr_getschedparam(3), in that those routines get the scheduling pol-
icy and parameter attributes that are used to establish the priority and scheduling policy of a new thread when it is created. This rou-
tine, however, obtains the scheduling policy and parameters of an existing thread.
RETURN VALUES
If an error condition occurs, this routine returns an integer value indicating the type of error. Possible return values are as follows:
Successful completion. The value specified by thread does not refer to an existing thread.
ERRORS
None
RELATED INFORMATION
Functions: pthread_attr_getschedparam(3), pthread_attr_getschedpolicy(3), pthread_create(3), pthread_self(3), pthread_setschedparam(3)
Manuals: Guide to DECthreads and Programmer's Guide
delim off
pthread_getschedparam(3)