I am new user to solaris and installed solaris operating system on full Harddisk 120Gb. I am unable to copy music files to desktop and /home directory.
One thing happened while registering is- i entered login-root and its password. The message prompted your system is crashed. Is it because of... (1 Reply)
hi
I want to copy all files from the current directory and move to .archive file.
Moreover,I want to add .bak to each file name, that will be copied.
How can I do that? (4 Replies)
Hi,
I understand that to copy files across server, the feasible way will be using scp command. Am I right?
What if the two servers are not connected to a network? If by using a cross cable to link up both the server, what will be the best (fastest) way to copy files across? scp as well?
... (3 Replies)
I am userB and have a dir
/temp1
This dir is owned by me.
How do I recursively copy files from another users's dir userA?
I need to preserve the original user who created files, original group information, original create date, mod date etc.
I tried
cp -pr /home/userA/* .
... (2 Replies)
Hi All,
I'm trying to list some files from my log directory
and files are like this
log.20110302_20.gz
log.20110302_21.gz
log.20110302_22.gz
log.20110302_23.gz
log.20110303_00.gz
log.20110303_01.gz
log.20110303_02.gz
............
log.20110311_22.gz
log.20110311_23.gz... (2 Replies)
Hi All,
I am doing this for svn patch making. I got the list of files to make the patch. I have the list in a file with path of all the files.
To Do
From Directory : /myproject/MainDir
To Directory : /myproject/data
List of files need to copy is in the file: /myproject/filesList.txt
... (4 Replies)
All,
I need to grab and rename common files from several unique directory structures. For example, the directory structures looks like:
/unique_dir/common/common/common/person_name_dir/common_file.txt
There are over 90,000 of these text files that I'd like to put in a single directory as... (5 Replies)
I'm trying to do this exact same thing, so far I have created this to move files
i've named my script CP.sh
#!/bin/bash
cd /root/my-documents/NewDir/
for f in *.doc
do cp -v $f root/my-documents/NewDir $f{%.doc}
done
When i go to run this in the console i type, bin/sh/ CP.sh
but it... (7 Replies)
Discussion started by: MKTM_93_SIMP
7 Replies
LEARN ABOUT HPUX
pthread_setcanceltype
pthread_setcancelstate(3T)pthread_setcancelstate(3T)NAME
pthread_setcancelstate(), pthread_setcanceltype() - set and retrieve current thread's cancelability state or type.
SYNOPSIS PARAMETERS
state Value to which the cancelability state of the calling thread is to be set.
oldstate Pointer to the location where the old cancelability state of the calling thread will be returned.
type Value to which the cancelability type of the calling thread is to be set.
oldtype Pointer to the location where the old cancelability type of the calling thread will be returned.
DESCRIPTION
atomically sets the calling thread's cancelability state to the value in state and returns the previous cancelability state in oldstate.
The legal values for state are:
Disable cancelability for the calling thread.
Cancellation requests against the calling thread are held pending.
Enable cancelability for the calling thread.
Cancellation requests against the calling thread may be acted upon. When a pending cancellation request will be acted upon
depends on the thread's cancelability type.
By default, a thread's cancelability state is set to when it is created.
atomically sets the calling thread's cancelability type to the value in type and returns the previous cancelability type in oldtype. The
legal values for type are:
New or pending cancellation requests against the calling thread may be acted
upon at any time (if cancellation is enabled for the calling thread).
Cancellation requests for the calling thread are held pending until a
cancellation point is reached.
A thread's cancelability type is set to when it is created.
If a thread's cancelability state is disabled, the setting of the thread's cancelability type has no immediate effect. All cancellation
requests are held pending. However, once cancelability is enabled again, the new type will be in effect.
RETURN VALUE
Upon successful completion, and return zero. Otherwise, an error number is returned to indicate the error (the variable is not set).
ERRORS
For each of the following conditions, if the condition is detected, the and functions return the corresponding error number:
[EINVAL] state contains an invalid value.
[EINVAL] type contains an invalid value.
NOTES
Only functions that are async-cancel safe should be called from a thread that is asynchronously cancelable.
AUTHOR
and were derived from the IEEE POSIX P1003.1c standard.
SEE ALSO pthread_exit(3T), pthread_join(3T), pthread_cancel(3T), pthread_cond_wait(3T), pthread_cond_timedwait(3T).
STANDARDS CONFORMANCE
Pthread Library pthread_setcancelstate(3T)