The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
suspend a process superuser84 UNIX for Advanced & Expert Users 6 03-18-2008 09:36 PM
Suspend Cron job temprory pankajkrmishra Shell Programming and Scripting 4 08-14-2006 09:18 AM
suspend a process piou78 Shell Programming and Scripting 7 06-03-2005 10:08 AM
UNIX Process Suspend proton UNIX for Dummies Questions & Answers 3 02-13-2005 03:27 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-25-2005
ust ust is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 98
Suspend to write file

We have a common directory , everyone can put file to it , but I found that there is a problem if the user continouosly write files to this directory while the another application is running at the same time , so I want temporaily "protect" the directory , no files can be write to it at a specific time ( eg. from every 1:00am - 3:00am , 7am - 8:30am & 5pm - 6:45pm ) , the system should temporaily store the files in the above time and write back to the directory after the "pretection" period , is it possible ? thx.
  #2 (permalink)  
Old 11-25-2005
Neo's Avatar
Neo Neo is online now Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,775
Yes, it is possible. Many people used "Lock Files" as ad hoc semaphores to accomplish this task.
  #3 (permalink)  
Old 11-26-2005
ust ust is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 98
Quote:
Originally Posted by Neo
Yes, it is possible. Many people used "Lock Files" as ad hoc semaphores to accomplish this task.
thx reply,

could advise how to do that ? thx
  #4 (permalink)  
Old 12-13-2005
shriashishpatil shriashishpatil is offline
Registered User
  
 

Join Date: Dec 2005
Location: Pune
Posts: 81
I can think of a solution as follows.

Write a shell script that runs forever and removes write permission on the directory in specified time gap. Better u can have a cron job to do that. But that does not satisfy the second requirement.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:43 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0