10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need to install a bin file in UNIX which requires user interaction for giving some information like user id , path, sid etc. All these information is stored in a properties file in the same location.
So if i give ./file.bin -f propfile.properties will it install the file taking all the... (1 Reply)
Discussion started by: coolmohere
2. Shell Programming and Scripting
I have a requirement to parse a properties file having a key=value pairs.
i need to count the number of key value pairs in the properties file and iterate through each key-value pair. I have written the script to read the number of lines from the property file, but cannot... (2 Replies)
Discussion started by: prashdeep
3. UNIX for Dummies Questions & Answers
I have a .properties file that a read in some values in an .sh file but everytime I put it out on the server it fails.
If I copy and paste the values of the .properties file on my local machine to the .properties file on the server it works just fine. Someone mentioned to see if it has
dos... (3 Replies)
Discussion started by: vsekvsek
4. Shell Programming and Scripting
Am new to this scripting stuff so bear with me.
I got a script made now that reads in a properties file. The properties file is in the following format:
256= Bos, Sea, FRa
I want to be able to read in each line of the file and split out the letter fields by the numbered field. This... (2 Replies)
Discussion started by: vsekvsek
5. Shell Programming and Scripting
i have a properties file a.prop where entry is like
Now in my shell schript i am doing like this.
while read line
# tokenize the string by ",".
var=(`echo $line | tr ',' ' '`)
echo $PROCESS_IDX -->... (6 Replies)
Discussion started by: sailaja_80
6. Shell Programming and Scripting
I have a requirement to parse a file.
Let me clear you all on the req.
I have a job which contains multiple tasks and each task will have multiple attributes that will be in the below format. Each task will have some sequence number according to that sequence number tasks shld... (1 Reply)
Discussion started by: rajeshorpu
7. UNIX for Dummies Questions & Answers
I do have a line in my code as follows:
if ] ; then
What does the -z does ? Similarly there is -s in some other part of the code. I guess there are many options like this.. Can anybody please tell what all options are available and what do they mean ? (2 Replies)
Discussion started by: risshanth
How can we identify the informations like Author, meta data, dependency and other information from a depot file? (1 Reply)
Discussion started by: sethumadhavan
9. Shell Programming and Scripting
i am again surrounded by a big problem,,,
i have 2 files
aaaa xxxx xxxxx
zzzz zzzz zzz bbb
aaaa xx xxxx xxxx
xxx zzzz zzzz zzz... (1 Reply)
Discussion started by: go4desperado
10. Shell Programming and Scripting
i had written one script
that make connection with remote host
get some file and close the connection ..
it works fine .. but when i put this scrip in between control structure commands like "if , case " then it give me error like" syntax error at line 26 : `<<' unmatched"
please tell me... (6 Replies)
Discussion started by: ravindra shukla
thr_suspend(3C) Standard C Library Functions thr_suspend(3C)
thr_suspend, thr_continue - suspend or continue thread execution
cc -mt [ flag... ] file...[ library... ]
int thr_suspend(thread_t target_thread);
int thr_continue(thread_t target_thread);
The thr_suspend() function immediately suspends the execution of the thread specified by target_thread. On successful return from thr_sus-
pend(), the suspended thread is no longer executing. Once a thread is suspended, subsequent calls to thr_suspend() have no effect.
The thr_continue() function resumes the execution of a suspended thread. Once a suspended thread is continued, subsequent calls to thr_con-
tinue() have no effect.
A suspended thread will not be awakened by any mechanism other than a call to thr_continue(). Signals and the effect of calls tomu-
tex_unlock(3C), rw_unlock(3C), sema_post(3C), cond_signal(3C), and cond_broadcast(3C) remain pending until the execution of the thread is
resumed by thr_continue().
If successful, the thr_suspend() and thr_continue() functions return 0. Otherwise, a non-zero value is returned to indicate the error.
The thr_suspend() and thr_continue() functions will fail if:
ESRCH The target_thread cannot be found in the current process.
See attributes(5) for descriptions of the following attributes:
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|MT-Level |MT-Safe |
thr_create(3C), thr_join(3C), attributes(5), standards(5)
The thr_suspend() function is extremely difficult to use safely because it suspends the target thread with no concern for the target
thread's state. The target thread could be holding locks, waiting for a lock, or waiting on a condition variable when it is unconditionally
suspended. The thread will not run until thr_continue() is applied, regardless of any calls to mutex_unlock(), cond_signal(), or
cond_broadcast() by other threads. Its existence on a sleep queue can interfere with the waking up of other threads that are on the same
The thr_suspend() and thr_continue() functions should be avoided. Mechanisms that involve the cooperation of the targeted thread, such as
mutex locks and condition variables, should be employed instead.
SunOS 5.11 22 Mar 2002 thr_suspend(3C)