Sponsored Content
Top Forums Shell Programming and Scripting Reading 5 Students names and grades using while loop???? Post 302147215 by blowtorch on Monday 26th of November 2007 01:46:04 AM
Old 11-26-2007
We have a pretty strict policy here about not allowing homework questions. I'm locking this thread.
 

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

executing scripts by reading names from a file

file.txt contains ------------------ sat1 1300 sat2 2400 sat3 sat4 500 I need to write a shell script that will output like the below #output sat1.ksh 1300 sat2.ksh 2400 sat3.ksh sat4.ksh 500 my try ------- #!/bin/ksh for i in `cat file.txt` (3 Replies)
Discussion started by: konark
3 Replies

2. Shell Programming and Scripting

help with a 'while read' loop to change the names of files

Hi, I am new to scripting, so any help on this would be much appreciated. I am trying to rename a bunch of files, taking the names sequentially from a list read in another file... # ls oldnames file_1 file_2 file_3 # cat names red yellow green I want the files to take on the... (6 Replies)
Discussion started by: starsky
6 Replies

3. Shell Programming and Scripting

File Names in a Variable in a loop

Hi All , I am having confusion in a shell script. Please guide me. I need to get multiple files (number of files vary time to time, file names are separated by '|') using FTP get from the remote server. Actually, i call the FTP function in a loop. At the last step, i need to move all the get... (3 Replies)
Discussion started by: spkandy
3 Replies

4. Shell Programming and Scripting

Problem with File Names under tcsh loop

Hello, I have a question regarding file naming under a loop in tcsh. I have the following code: #!/bin/tcsh foreach file (test/ProteinDirectory/*) # The * is a bunch of ProteinFile1, ProteinFile2, ProteinFile3, etc. sh /bioinfo/home/dgendoo/THREADER/pGenThreader.sh $file $file ... (4 Replies)
Discussion started by: InfoSeeker
4 Replies

5. UNIX for Dummies Questions & Answers

Loop through directory names

Some guidance is highly appreciated. I have 10 directories with names ending with 'xyz', each of them have about 30000 files. I want to loop through the contents of each directory and produce a single output per directory. So I want to have 10 output files named 'directory_name'_out. With... (1 Reply)
Discussion started by: newbie83
1 Replies

6. Shell Programming and Scripting

Print file names in a loop

OS : RHEL 6.1 Shell : Bash I have lots of files in /tmp/stage directory as show below. Using a loop, I need to print all the filenames in this directory except those ending with a number. How can I do this ? # pwd /tmp/stage # # # ls -l * -rw-r--r--. 1 root root 0 Oct 7 18:38 stmt1... (2 Replies)
Discussion started by: kraljic
2 Replies

7. Homework & Coursework Questions

Grades exercise

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Write a shell script program that will input a name and a mark between 0 and 100. The program then displays the... (9 Replies)
Discussion started by: UniverseCloud
9 Replies
pthread_getschedparam(3T)												 pthread_getschedparam(3T)

NAME
pthread_getschedparam(), pthread_setschedparam() - get or set the scheduling policy and associated parameters SYNOPSIS
PARAMETERS
thread The thread whose scheduling policy and associated parameters are to be set/retrieved. policy This parameter either points to the memory location where the scheduling policy of thread is returned (get function) or it specifies the new value of the scheduling policy for thread (set function). param This parameter either points to the memory location where the scheduling parameters of thread are returned (get function) or it specifies the new scheduling parameters for thread (set function). DESCRIPTION
These functions allow the scheduling policy and associated parameters of threads within a multithreaded process to be retrieved and changed. The legal values for the scheduling policy and associated scheduling parameters are defined in changes the scheduling policy and associated scheduling parameters for thread to the policy and the associated parameters provided in pol- icy and param, respectively. On HP-UX, appropriate privileges are required to change the scheduling parameters of a thread. The calling process must have appropriate privileges or be a member of a group having access to successfully call The function retrieves the scheduling policy and associated parameters for thread and stores those values in policy and param, respec- tively. The values returned represent the actual scheduling values, not any temporary values that may be in effect due to priority inheri- tance or priority ceiling features. Notes For the and scheduling policies, only the sched_priority member of the structure is required in the associated scheduling parameters. All other scheduling policies have implementation-defined scheduling policies. Refer to the documentation for rtsched(2) and for further information on implementation-defined scheduling policies. RETURN VALUE
Upon successful completion, and return zero. Otherwise, an error number is returned to indicate the error (the variable is not set). ERRORS
If any of the following occur, the and functions return the corresponding error number: is not defined and these functions are not supported. For each of the following conditions, if the condition is detected, the function returns the corresponding error number: policy or one of the scheduling parameters in param is invalid. Either the policy or scheduling parameters contain an unsupported value. The caller does not have permission to set either the scheduling policy specified in policy or the scheduling parameters specified in param for thread. No thread could be found corresponding to thread. For each of the following conditions, if the condition is detected, the function returns the corresponding error number: No thread could be found corresponding to thread. The value specified by policy or param is invalid. AUTHOR
and were derived from the IEEE POSIX P1003.1c standard. SEE ALSO
pthread_attr_setschedparam(3T), pthread_attr_setschedpolicy(3T), pthread_attr_getschedparam(3T), pthread_attr_getschedpolicy(3T), rtsched(2). STANDARDS CONFORMANCE
Pthread Library pthread_getschedparam(3T)
All times are GMT -4. The time now is 05:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy