09-20-2004
Sounds like another class assignment - if you can't figure it out on your own, please request help from your instructor.
Closing thread.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
linux redhat 8.0
I am getting accustomed to using the -exec command to get around my databse.. and use it to edit and update files..! is this more apllicable than jumping from one directory to the other.. I have set up the databse so that the inode #'s are accessable and can get me from one... (0 Replies)
Discussion started by: moxxx68
0 Replies
2. UNIX for Dummies Questions & Answers
I have a ksh script that contains the following:
find /dir1/dir2 -type f -name "FILE.*" -newer /dir1/dir2/afterme.txt -exec cp /dir1/dir2/dir3 {} \;
When I run it from the cli, it runs fine. When I run it from the ksh script I get
find: missing argument to `-exec'
I also tried -exec cp... (40 Replies)
Discussion started by: bbbngowc
40 Replies
3. Shell Programming and Scripting
can any one pls explain the meaning of
exec 1<&5 ?? its urgent (2 Replies)
Discussion started by: santosh1234
2 Replies
4. Shell Programming and Scripting
All,
I am using below shell script to output the content to outputfile.txt. What I am looking for is in addition to outputfile.txt, I want the output to be on standard output too.
exec > outputfile.txt
echo "Starting "
echo "ending" (5 Replies)
Discussion started by: basic_shell
5 Replies
5. Shell Programming and Scripting
How can I use the exec command to log my korn shell session to the screen and the log file?
Currently I have this command:
$exec 1> ${LOG} 2>&1
This logs the output to the log file only. I want it to go to the screen also. Is this possible with this command?
thanks. (10 Replies)
Discussion started by: djehresmann
10 Replies
6. UNIX for Dummies Questions & Answers
Hi can some one explain the following command , It would really help if some can really elloborate on what is happening out here
export PATH | exec /bin/sh ./auto_approve :q
P.S: This is the first time i am using exec ,so an elloboration what does it do and what is the use of the :q will be... (1 Reply)
Discussion started by: Sri3001
1 Replies
7. Shell Programming and Scripting
Hi,
I have the following lines in a script :
.
.
exec < some_file
.
.
.
I have very little idea about exec command. I would like to know what this does and what will happen if the file some_file does not exist. Specifically, I would like to know whether the lines following this... (5 Replies)
Discussion started by: elixir_sinari
5 Replies
8. Shell Programming and Scripting
I have the following bash script lines in a file named test.sh.
#!/bin/bash
#
# Write Date to cron.log
#
echo "Begin SSI Load $(date +%d%b%y_%T)"
#
# Get the latest rates file for processing.
#
d=$(ls -tr /rms/data/ssi | grep -v "processed" | tail -n 1)
filename=$d
export filename... (3 Replies)
Discussion started by: ginowms
3 Replies
9. Shell Programming and Scripting
Hi all,
Forgive me for asking for help with my first post, but I am struggling here. I've been asked to translate a bash script into a Windows script (probably batch or powershell, not sure yet), so the first step is obviously understand what the bash script is doing. But I have no experience in... (5 Replies)
Discussion started by: el_foz
5 Replies
10. Shell Programming and Scripting
Hello.
From a script, a command for a test is use :
find /home/user_install -maxdepth 1 -type f -newer /tmp/000_skel_file_deb ! -newer /tmp/000_skel_file_end -name '.bashrc' -o -name '.profile' -o -name '.gtkrc-2.0' -o -name '.i18n' -o -name '.inputrc'
Tha command... (3 Replies)
Discussion started by: jcdole
3 Replies
LEARN ABOUT OSF1
pthread_cancel
pthread_cancel(3) Library Functions Manual pthread_cancel(3)
NAME
pthread_cancel - Allows a thread to request a thread to terminate execution.
LIBRARY
DECthreads POSIX 1003.1c Library (libpthread.so)
SYNOPSIS
#include <pthread.h>
int pthread_cancel(
pthread_t thread);
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 that receives a cancelation request.
DESCRIPTION
This routine sends a cancelation request to the specified target thread. A cancelation request is a mechanism by which a calling thread
requests the target thread to terminate as quickly as possible. Issuing a cancelation request does not guarantee that the target thread
will receive or handle the request.
When the cancelation request is acted on, all active cleanup handler routines for the target thread are called. When the last cleanup han-
dler returns, the thread-specific data destructor routines are called for each thread-specific data key with a destructor and for which the
target thread has a non-NULL value. Finally, the target thread is terminated.
Note that cancelation of the target thread runs asynchronously with respect to the calling thread's returning from pthread_cancel(3). The
target thread's cancelability state and type determine when or if the cancelation takes place, as follows: The target thread can delay can-
celation during critical operations by setting its cancelability state to PTHREAD_CANCEL_DISABLE. Because of communication delays, the
calling thread can only rely on the fact that a cancelation request will eventually become pending in the target thread (provided that the
target thread does not terminate beforehand). The calling thread has no guarantee that a pending cancelation request will be delivered
because delivery is controlled by the target thread.
When a cancelation request is delivered to a thread, termination processing is similar to that for pthread_exit(3). For more information
about thread termination, see the discussion of thread termination in pthread_create(3).
This routine is preferred in implementing an Ada abort statement and any other language- or software-defined construct for requesting
thread cancelation.
The results of this routine are unpredictable, if the value specified in thread refers to a thread that does not currently exist.
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 specified thread is invalid. The thread argument does not specify an existing thread.
ERRORS
None
RELATED INFORMATION
Functions: pthread_cleanup_pop(3), pthread_cleanup_push(3), pthread_create(3), pthread_exit(3), pthread_join(3), pthread_setcancelstate(3),
pthread_setcanceltype(3), pthread_testcancel(3)
Manuals: Guide to DECthreads and Programmer's Guide
delim off
pthread_cancel(3)