10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I've used threads before, but not with Perl.
I tried looking up these errors and using 'join' instead of 'detach' with no luck.
Here is the code I am currently using:
#!/usr/bin/perl -w
use warnings;
use threads;
use threads::shared;
$Linux='Linux';
$Greek='Greek';
my... (3 Replies)
Discussion started by: Azrael
3 Replies
2. Shell Programming and Scripting
Hi All,
I am trying to make a small shell script.In this it will got directory as per variable & run the find command on that directory.There are 120 + directories & not sure all of them are mounted.So the issue is if the directory doesent exists my loops gets terminated. so is there any was... (3 Replies)
Discussion started by: ajaincv
3 Replies
3. Programming
Hello all,
Is there any way that I can signal (wake) all threads that I have created without using pthread_cond_broadcast?
Cheers!
Aaron (6 Replies)
Discussion started by: mobility
6 Replies
4. Shell Programming and Scripting
Hi all , i know i ask a lot of question but these are really hard to solve and important question. I send two scripts:
expect.sh:
#!/usr/local/bin/expect
spawn ssh root@172.30.64.163
expect "login:"
send "root\n"
expect "password:"
send "root\n^M"
interact
and
son.sh:
... (2 Replies)
Discussion started by: fozay
2 Replies
5. Shell Programming and Scripting
hi all,
i m running few batch process through shell script using nohup command but when session get terminated(due to network, reboot of desktop and closing session directly) all processes terminating abnormally and core file is generating.
application batch process is connecting oracle... (4 Replies)
Discussion started by: arvindng
4 Replies
6. Shell Programming and Scripting
I now that this isnt the greatest code around. Im a network guy by trade not a programer .. but needed something to compare config files ...
Anyway ... intermittently, the program terminates.
Ive been looking at the code for a week trying to figure it out and Im stumped. Can anyone provide... (0 Replies)
Discussion started by: popeye
0 Replies
7. HP-UX
Hi!
Just want to know if there is one command that I can use to kill processes by its name.
Thanks. (1 Reply)
Discussion started by: love833
1 Replies
8. UNIX for Dummies Questions & Answers
Hi
I was working on a shell script with randomly shows a page of text from a randomly selected topic .As soon as the page is displayed it callers a timer script which keeps on running indefinitely until the timer script is killed by the user.
This is where I have the problem,if I press... (2 Replies)
Discussion started by: mervin2006
2 Replies
9. Shell Programming and Scripting
Hi,
I'm trying to make a script that reads the console input and terminates with CTRL+D. It's absolutely basic but I don't know how to "read" the CTRL+D. I've tried a bunch of things like
EOT=^D
while //with & without quotations
do
read input
echo $input
done
while
while ]
... (12 Replies)
Discussion started by: sanchopansa
12 Replies
10. UNIX for Dummies Questions & Answers
just like what the subject said
but the ip is different
example
if now my IP is 192.168.0.50 and my name is seed
if i wanna terminate 192.168.0.55 with the same nick of mine, seed
can i do that ?? and what is the command ?? (2 Replies)
Discussion started by: SeeD
2 Replies
sigpause(3C) sigpause(3C)
NAME
sigpause - signal management
SYNOPSIS
Obsolescent
DESCRIPTION
The function, along with the and functions provide simplified signal management.
The function removes sig from the calling thread's signal mask and suspends the calling thread until a signal is received. The function
restores the thread's signal mask to its original state before returning.
RETURN VALUE
The function suspends execution of the thread until a signal is received, whereupon it shall return and set to
ERRORS
[EINVAL] sig is not a valid signal number.
WARNINGS
The compiler option must be set to use sigpause(). The use of the function without the option is unspecified.
should not be used in conjunction with signal(2) and sigspace(2).
OBSOLESCENT FUNCTION
will be obsoleted in the near future. The obsolescent function blocks signals according to the value of mask, then atomically waits for an
unmasked signal to arrive. On return, restores the current signal mask to the value that existed before the call. When no signals are to
be blocked, a value of is used for mask.
terminates when it is interrupted by a signal. When terminates, it returns -l and sets to
The obsolescent function is typically used in conjunction with the obsoleted function.
Threads Considerations
Since blocked signal masks are maintained at the thread level, the obsolescent function modifies only the calling thread's blocked signal
mask. suspends only the calling thread until it receives a signal.
If other threads in the process do not block the signal, the signal may be delivered to another thread in the process and the thread in may
continue waiting. For this reason, the use of sigwait(2) is recommended instead of for multi-threaded applications.
For more information regarding signals and threads, refer to signal(5).
LP64 Programs
This obsolescent accepts a long (64 bit) value. However, as for ILP32 programs, supports signals numbered 1 through 32. The upper 32 bits
of the mask argument are ignored.
Author
was developed by the University of California, Berkeley.
SEE ALSO
kill(1), kill(2), pause(2), signal(2), wait(2), abort(3C), setjmp(3C), sighold(3C), sigignore(3C), sigrelse(3C), sigset(3C), signal(5).
STANDARDS CONFORMANCE
sigpause(3C)