Re: [fpc-pascal] Writing to a drive which may be spun down

2019-11-22 Thread James Richters
hingAboutError; James -Original Message- From: fpc-pascal On Behalf Of Winfried Bartnick Sent: Friday, November 22, 2019 9:35 AM To: fpc-pascal@lists.freepascal.org Subject: Re: [fpc-pascal] Writing to a drive which may be spun down James dragged the solution a little bit away from the &quo

Re: [fpc-pascal] Writing to a drive which may be spun down

2019-11-22 Thread Winfried Bartnick
all, and even if the drive didn't do this, it seems like the operating system should take care of it for you. James -Original Message- From: fpc-pascal On Behalf Of Brian Sent: Thursday, November 21, 2019 8:55 PM To: FPC-Pascal users discussions Subject: Re: [fpc-pascal] Writ

Re: [fpc-pascal] Writing to a drive which may be spun down

2019-11-22 Thread James Richters
ive didn't do this, it seems like the operating system should take care of it for you. James -Original Message- From: fpc-pascal On Behalf Of Brian Sent: Thursday, November 21, 2019 8:55 PM To: FPC-Pascal users discussions Subject: Re: [fpc-pascal] Writing to a drive which may

Re: [fpc-pascal] Writing to a drive which may be spun down

2019-11-21 Thread Brian
On 11/21/19 2:38 PM, Winfried Bartnick wrote: <...> > > writeln (txt,'I''m so tired ...'); > closeFile(txt); > io := ioResult; Thanks Winni, that sounds the sort of idea I'm looking for... Brian. ___ fpc-pascal maillist - fpc-pascal@lists.freepasca

Re: [fpc-pascal] Writing to a drive which may be spun down

2019-11-21 Thread Winfried Bartnick
Am 21.11.19 um 13:52 schrieb Brian: On 11/21/19 7:12 AM, wkitt...@windstream.net wrote: On 11/21/19 1:16 AM, Brian wrote: My question: Is there a standard method for handling this situation, i.e. making sure that a drive has not spun down, or is it just a case of writing a wrapper round the wri

Re: [fpc-pascal] Writing to a drive which may be spun down

2019-11-21 Thread Marco Borsari via fpc-pascal
On Thu, 21 Nov 2019 01:16:16 -0500 Brian wrote: > Hi all, > > Running Ubuntu 18 LTS, I have a console-mode number-cruncher which > writes occasional output files. It works just fine if the output is > directed to a drive which is permanently spun up, but can fail if the > output is directed to a

Re: [fpc-pascal] Writing to a drive which may be spun down

2019-11-21 Thread Brian
On 11/21/19 7:12 AM, wkitt...@windstream.net wrote: > On 11/21/19 1:16 AM, Brian wrote: >> My question: Is there a standard method for handling this situation, >> i.e. making sure that a drive has not spun down, or is it just a case >> of writing a wrapper round the write function and handling the

Re: [fpc-pascal] Writing to a drive which may be spun down

2019-11-21 Thread wkitty42
On 11/21/19 1:16 AM, Brian wrote: My question: Is there a standard method for handling this situation, i.e. making sure that a drive has not spun down, or is it just a case of writing a wrapper round the write function and handling the 'No such file' error with a wait and a retry? why not just

Re: [fpc-pascal] Writing to a drive which may be spun down

2019-11-21 Thread Bo Berglund via fpc-pascal
On Thu, 21 Nov 2019 01:16:16 -0500, Brian wrote: >Hi all, > >Running Ubuntu 18 LTS, I have a console-mode number-cruncher which >writes occasional output files. It works just fine if the output is >directed to a drive which is permanently spun up, but can fail if the >output is directed to a USB

[fpc-pascal] Writing to a drive which may be spun down

2019-11-20 Thread Brian
Hi all, Running Ubuntu 18 LTS, I have a console-mode number-cruncher which writes occasional output files. It works just fine if the output is directed to a drive which is permanently spun up, but can fail if the output is directed to a USB drive (by which I mean a USB-connected 8TB external drive