11-29-2001
.gz extensions
What do I use to open a file with a .gz extension? I'm guessing I need some kind of "unzipping" tool.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi everyone. I'm trying to install Frontpage extensions capacity on my web server and getting this error:
./fp_install.sh: line 59: 6763 Segmentation fault /usr/local/frontpage/version${VERSION}/bin/fpsrvadm.exe -o install -p $port $web $config -u $admin $server $chown -m ""
ERROR: /... (6 Replies)
Discussion started by: alwayslearningunix
6 Replies
2. Shell Programming and Scripting
Hello people, I was wondering if anyone could help me?
I want to produce a shell script that changes the filename extension on all matching file.
E.G. change all files called ‘something.rtf' to ‘something.doc' by giving the command:
Changex rtf doc
*where ‘Changex' is the name of... (2 Replies)
Discussion started by: thurrock
2 Replies
3. UNIX for Dummies Questions & Answers
Hiya all,
(Ops sorry - wrong area in 1st post!)
I'm getting the error:
Cannot find Apache apxs at /usr/sbin/apxs
ERROR: Unable to install mod_frontpage dso
(Full error below)
(I've tried downloading from both www.rtr.com and www.microsoft... - same error)
Please advise!
... (0 Replies)
Discussion started by: marty 600
0 Replies
4. UNIX for Dummies Questions & Answers
Hey!
Do you guys know of a good site that can explain all the Unix commands... I have been using Unix för almost 6 months but still have probelms with things like -u -U -g -G -R -T bla bla bla bla
thanks!
Dave (3 Replies)
Discussion started by: inkastinka
3 Replies
5. Shell Programming and Scripting
Friends
I want to automat sending a letter to different persons whose directories are named as 001, 002, 003, 004.
To push the same letter to all these directories, I need to name the letter as letter.001, letter.002 like that.
Is there any method whereby I get the extension of this letter... (2 Replies)
Discussion started by: chssastry
2 Replies
6. Shell Programming and Scripting
Dear Friends,
I want to move all the files to temp folder except files having following extensions which are case sensitive.
.ttM
.Hmt
.dMt
Request you to guide me to do the same
Thank you in advance
Anushree (3 Replies)
Discussion started by: anushree.a
3 Replies
7. Shell Programming and Scripting
hi guys
i have this script
Doc_=/home/$USER/Documentos/*.odt || .doc
but in the code above, only .odt files are selected, all .doc none.
What is the error in the code?
thanks (13 Replies)
Discussion started by: felito
13 Replies
8. Shell Programming and Scripting
I am trying to store file with certain file extensions to list but having some problems.
Here is a part of the code
set fryLst = ""
set fxtLst = ""
foreach f ($AfullNameLst)
set fname = $f:r
set fext = $f:e
if ("$fext" == ".ry") set fryLst = "$fryLst $f"
if ("$fext" == ".xt")... (2 Replies)
Discussion started by: kristinu
2 Replies
9. Shell Programming and Scripting
Hello everyone. :) I need to write a script and I'm newbie in it.
Sorry for my English, I've been learning that amazing language for one year.
Task:
Write script called 'myls', "wrapper" program call ls in such a way that you could ask it the name of the file without extension, for example:... (1 Reply)
Discussion started by: Sweetheart
1 Replies
10. Shell Programming and Scripting
Hello all!
I want to move several files foo.aux foo.log foo.pdf foo.tex to bar_foo.aux bar_foo.pdf bar_foo.tex
I am on tcsh
% mv foo.* bar_!#:1
is not working.
Thank you for your help
marek (11 Replies)
Discussion started by: marek
11 Replies
LEARN ABOUT REDHAT
pthread_mutexattr_gettype
PTHREAD_MUTEXATTR(3) Library Functions Manual PTHREAD_MUTEXATTR(3)
NAME
pthread_mutexattr_init, pthread_mutexattr_destroy, pthread_mutexattr_settype, pthread_mutexattr_gettype - mutex creation attributes
SYNOPSIS
#include <pthread.h>
int pthread_mutexattr_init(pthread_mutexattr_t *attr);
int pthread_mutexattr_destroy(pthread_mutexattr_t *attr);
int pthread_mutexattr_settype(pthread_mutexattr_t *attr, int kind);
int pthread_mutexattr_gettype(const pthread_mutexattr_t *attr, int *kind);
DESCRIPTION
Mutex attributes can be specified at mutex creation time, by passing a mutex attribute object as second argument to pthread_mutex_init(3).
Passing NULL is equivalent to passing a mutex attribute object with all attributes set to their default values.
pthread_mutexattr_init initializes the mutex attribute object attr and fills it with default values for the attributes.
pthread_mutexattr_destroy destroys a mutex attribute object, which must not be reused until it is reinitialized. pthread_mutexattr_destroy
does nothing in the LinuxThreads implementation.
LinuxThreads supports only one mutex attribute: the mutex kind, which is either PTHREAD_MUTEX_FAST_NP for ``fast'' mutexes,
PTHREAD_MUTEX_RECURSIVE_NP for ``recursive'' mutexes, or PTHREAD_MUTEX_ERRORCHECK_NP for ``error checking'' mutexes. As the NP suffix
indicates, this is a non-portable extension to the POSIX standard and should not be employed in portable programs.
The mutex kind determines what happens if a thread attempts to lock a mutex it already owns with pthread_mutex_lock(3). If the mutex is of
the ``fast'' kind, pthread_mutex_lock(3) simply suspends the calling thread forever. If the mutex is of the ``error checking'' kind,
pthread_mutex_lock(3) returns immediately with the error code EDEADLK. If the mutex is of the ``recursive'' kind, the call to
pthread_mutex_lock(3) returns immediately with a success return code. The number of times the thread owning the mutex has locked it is
recorded in the mutex. The owning thread must call pthread_mutex_unlock(3) the same number of times before the mutex returns to the
unlocked state.
The default mutex kind is ``fast'', that is, PTHREAD_MUTEX_FAST_NP.
pthread_mutexattr_settype sets the mutex kind attribute in attr to the value specified by kind.
pthread_mutexattr_gettype retrieves the current value of the mutex kind attribute in attr and stores it in the location pointed to by kind.
RETURN VALUE
pthread_mutexattr_init, pthread_mutexattr_destroy and pthread_mutexattr_gettype always return 0.
pthread_mutexattr_settype returns 0 on success and a non-zero error code on error.
ERRORS
On error, pthread_mutexattr_settype returns the following error code:
EINVAL kind is neither PTHREAD_MUTEX_FAST_NP nor PTHREAD_MUTEX_RECURSIVE_NP nor PTHREAD_MUTEX_ERRORCHECK_NP
AUTHOR
Xavier Leroy <Xavier.Leroy@inria.fr>
SEE ALSO
pthread_mutex_init(3), pthread_mutex_lock(3), pthread_mutex_unlock(3).
LinuxThreads PTHREAD_MUTEXATTR(3)