The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Error file Redirection maxmave Shell Programming and Scripting 3 04-23-2008 09:17 AM
awk two file redirection kamel.seg Shell Programming and Scripting 1 12-18-2007 11:17 AM
Unix command redirection swap007 Filesystems, Disks and Memory 1 10-06-2007 04:52 AM
.forward file for mail redirection giannicello UNIX for Dummies Questions & Answers 3 01-12-2002 08:06 AM
File redirection namtab UNIX for Dummies Questions & Answers 4 01-10-2002 08:48 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #8  
Old 05-11-2008
Technorati Master
 

Join Date: Mar 2005
Location: Large scale systems...
Posts: 2,610
userix,

with sticky bit I meant it on the directory - hope you also meant the same.

When the data can't fit in the pipe kernel data structure automatically it retorts to storage in the form of file.

Is it something, user should be able to create only process space and no files at all ?

Even with what I had suggested its going to be a silent operation, temp file creation and deletion.
Reply With Quote
Forum Sponsor
  #9  
Old 05-11-2008
Registered User
 

Join Date: May 2008
Posts: 20
Quote:
Originally Posted by matrixmadhan View Post
userix,

with sticky bit I meant it on the directory - hope you also meant the same.

When the data can't fit in the pipe kernel data structure automatically it retorts to storage in the form of file.

Is it something, user should be able to create only process space and no files at all ?

Even with what I had suggested its going to be a silent operation, temp file creation and deletion.
I grabbed the definition of sticky bit from wikipedia: "when set, items inside the directory can be renamed or deleted only by the item's owner, the directory's owner, or the superuser"

So would this mean that when my professors runs the script, it will create the temp file with no issues, but when it comes to "rm" the temp file, he won't be able to, since sticky bit forbids deleting of any files in the set directory, thus throwing an error when it hits the "rm tempfile" part of my script? I guess in the end, I can just give him write permissions as well to the folder containing this script, that way the temp file will create and delete without errors. Thanks again.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 12:09 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0