Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2008-10

Re: command-line+Carbon template

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Unknown author

Hi, Danie --

I'm not sure if you saw my most recent post, where I described what I was actually doing, in response to Jonas's concern that the LISP code might be trying to read the FPC-created file before it had been closed.

I'm actually writing to a dummy file name (suffixed ".TMP"), then closing the dummy file and renaming it to the one the LISP app is looking for (suffixed ".DAT"). Does this sound more or less what you had in mind? In any case, my method's not working. :(

Best,
Bill

Show quoted text 7 lines
Here I would only like to suggest trying to use the same file handle with a new file name... maybe renaming it (dummy name) after copying it to another file (maybe the proper name). I think I had a similar situation with a batch file from within an excel macro. I think it might rather be a OS environment issue than the program itself. I hope I am not misleading you... DanieW

Reply by email

Jonas Maebe
to Unknown author
Show quoted text 12 lines
I'm not sure if you saw my most recent post, where I described what I was actually doing, in response to Jonas's concern that the LISP code might be trying to read the FPC-created file before it had been closed. I'm actually writing to a dummy file name (suffixed ".TMP"), then closing the dummy file and renaming it to the one the LISP app is looking for (suffixed ".DAT"). Does this sound more or less what you had in mind? In any case, my method's not working. :(

You could try running

sudo fs_usage -w yourapp

to see what exactly is going on at the file system level. Or you can start your application and run "sudo fs_usage -w" in a separate Terminal window to see all system wide file system operations (i.e., also those of the LISP program).

Jonas

Reply by email

Marco van de Voort
to Unknown author: Hi, Danie -- I'm not sure if you saw my most recent post, where I described what I was…

In our previous episode, said:

Show quoted text 8 lines
I'm not sure if you saw my most recent post, where I described what I was actually doing, in response to Jonas's concern that the LISP code might be trying to read the FPC-created file before it had been closed. I'm actually writing to a dummy file name (suffixed ".TMP"), then closing the dummy file and renaming it to the one the LISP app is looking for (suffixed ".DAT"). Does this sound more or less what you had in mind? In any case, my method's not working. :(

You are 100% sure the systems are the same with the two tests? IOW, that not one has some special or networked filesystem configured that might behave differently?

Reply by email