Sponsored Content
Full Discussion: set command
Top Forums UNIX for Dummies Questions & Answers set command Post 30262 by Perderabo on Friday 18th of October 2002 04:13:21 PM
Old 10-18-2002
All you can do is turn noclobber on and off.
set -o noclobber # turn noclobber on
set +o noclobber # turn noclobber off
set -o # see all options

If noclobber is on a command like "echo hello > file" will fail if file already exists. You can overwrite the file anyway by using: "echo hello >| file". Or you can just turn off noclobber.

But the setting of noclobber will not suddenly give you extraordinary permission to write into unwritable files.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

SET command

Hi Unixers, :) In a shell script i found the following statements mline='grep\^ 1111 emaster.dbf set -- $mline The first statement searches the emaster.dbf file for the code 1111 and ifit finds any such line it gets that line and stores it in mline. But iam getting little bit confusion with... (4 Replies)
Discussion started by: ravi raj kumar
4 Replies

2. Shell Programming and Scripting

how to use set command

i have a script in which i go to a particular dir and list all its file ------------------------------------------------------------------------ #!/bin/ksh if test -d systemProperties then set --`cd systemProperties` for i in * do echo "$i" >> lastm2.txt done fi... (2 Replies)
Discussion started by: ali560045
2 Replies

3. Shell Programming and Scripting

set command

Hi, I am new to unix and trying to learn shell scripting. I am using Redhat linux instead of unix and using Bash shell. I typed some code which consist of "set" command. I got the code from a book. The code is, set 'who am i' echo $name Actually the... (3 Replies)
Discussion started by: saravanakumar
3 Replies

4. UNIX for Dummies Questions & Answers

What is the set -o vi command for?

I have heard the following command and seen people using it at shell but I don't know what it is for and when it is used. I will appreciate any comment regarding the use of this command. set -o vi (2 Replies)
Discussion started by: agasamapetilon
2 Replies

5. Shell Programming and Scripting

set -x command

hi all, Please tell all the uses of set -x command. Also can you tell about other options which can be used with set command. Thanks:) sumit (3 Replies)
Discussion started by: sumit207
3 Replies

6. Shell Programming and Scripting

Set Command Help

Hi, I have following scenario.. set -e eval Command 1 eval Command 2 eval Command 3 gmake realclean but now the problem is I want to print an error message, advising user to run gmake realclean after resolving errors if any of the Command1/2/3 failed. I know I can use trap to do... (0 Replies)
Discussion started by: Shribigb
0 Replies

7. UNIX for Dummies Questions & Answers

When do we use set command

Hi all, Some clarification regarding the unix set command for ksh env. I read up the man pages, but ended up more blur. Eg. - Turns off -x and -v flags and stops examining argu- ments for flags. - Does not change any of the flags. This option is ... (1 Reply)
Discussion started by: srage
1 Replies

8. HP-UX

What is the use of command set -- and set - variable?

Hi, I am using hp unix i want to know the use of the following commands set -- set - variable thanks (4 Replies)
Discussion started by: gomathi
4 Replies

9. UNIX for Dummies Questions & Answers

Running set options from the command line and bash command

I'm reading about debugging aids in bash and have come across the set command. It says in my little book that an addition to typing set you can also use them "on the command line when running a script..." and it lists this in a small table: set -o option Command Line... (5 Replies)
Discussion started by: Straitsfan
5 Replies

10. UNIX for Dummies Questions & Answers

Set Command to output a log of every command executed in the script

Hi Guys, I like to output every command executed in the script to a file. I have tried set -x which does the same. But it is not giving the logs of the child script which is being called from my script. Is there any parameters in the Set command or someother way where i can see the log... (2 Replies)
Discussion started by: mac4rfree
2 Replies
FSTRACE_SETLOG(8)					       AFS Command Reference						 FSTRACE_SETLOG(8)

NAME
fstrace_setlog - Sets the size of a trace log SYNOPSIS
fstrace setlog [-log <log name>+] -buffersize <1-kilobyte units> [-help] fstrace setl [-l <log name>+] -b <1-kilobyte units> [-h] DESCRIPTION
The fstrace setlog command defines the number of kilobytes of kernel memory allocated for the "cmfx" trace log. If kernel memory is currently allocated, the command clears the current log and creates a new log buffer of the specified size. To display the current defined size of the log buffer, issue the fstrace lslog command with the -long argument. To control whether the indicated amount of space is actually allocated, use the fstrace setset command to set the status of the "cm" event set; to display the event set's status, use the fstrace lsset command. OPTIONS
-log <log name>+ Names trace log for which to set the size. The only acceptable value is "cmfx", which is also the default if this argument is omitted. -buffersize <1-kilobyte units> Specifies the number of 1-kilobyte blocks of kernel memory to allocate for the trace log. -help Prints the online help for this command. All other valid options are ignored. EXAMPLES
The following command allocated 80 KB of kernel memory for the "cmfx" trace log: # fstrace setlog -log cmfx -buffersize 80 PRIVILEGE REQUIRED
The issuer must be logged in as the local superuser "root". SEE ALSO
fstrace(8), fstrace_lslog(8), fstrace_lsset(8), fstrace_setset(8) COPYRIGHT
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved. This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell. OpenAFS 2012-03-26 FSTRACE_SETLOG(8)
All times are GMT -4. The time now is 03:21 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy