|
Prev: cmd1 | gzip -f ... && cmd2 : Command concatenation with condition: Execute cmd2 only if cmd1 (or gzip) fails/succeeds?
Next: trying to recursively get the files' owners and permissions as well as an md5sum of the data
From: Ivan on 17 Jun 2008 06:03 Hi all, is there a way to close files left open by other programs (which were not closed properly) from the shell (tcsh)? Thanks Ivan
From: viza on 17 Jun 2008 07:43 On Tue, 17 Jun 2008 11:03:50 +0100, Ivan wrote: > is there a way to close files left open by other programs (which were > not closed properly) from the shell (tcsh)? All open files in process are automatically closed when the process terminates.
From: franzi on 17 Jun 2008 10:22 On 17 Giu, 13:43, viza <tom.v...(a)gmil.com> wrote: > On Tue, 17 Jun 2008 11:03:50 +0100, Ivan wrote: > > is there a way to close files left open by other programs (which were > > not closed properly) from the shell (tcsh)? > > All open files in process are automatically closed when the process > terminates. lsof openfiles,kill close files
From: Tonagon on 18 Jun 2008 12:24 On Jun 17, 6:03 am, "Ivan" <idipr...(a)hotmail.com> wrote: > Hi all, > > is there a way to close files left open by other programs (which were not > closed properly) from the shell (tcsh)? > > Thanks > Ivan It is usually not much of an issue in Unix (as compared to Windows) as most files can be accessed by multiple users and processes without any errors.
From: James Kanze on 20 Jun 2008 16:59
On Jun 18, 6:24 pm, Tonagon <tony.robe...(a)marriott.com> wrote: > On Jun 17, 6:03 am, "Ivan" <idipr...(a)hotmail.com> wrote: > > is there a way to close files left open by other programs > > (which were not closed properly) from the shell (tcsh)? > It is usually not much of an issue in Unix (as compared to > Windows) as most files can be accessed by multiple users and > processes without any errors. It's not normally a problem on any OS. When the process terminates, the OS automatically closes all of the files it had open. -- James Kanze (GABI Software) email:james.kanze(a)gmail.com Conseils en informatique orientée objet/ Beratung in objektorientierter Datenverarbeitung 9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34 |