yet another linux <-> win32 question

P

Peter Szinek

Hi,

Sorry for these dumb questions but I am really off when it comes to
doing anything with win32.

So, the thing is that I have a function that creates a temp file, then
does something with it and deletes it. I am doing this with

File.delete(temp_filename)

On linux this script runs without any problems, however under windows I
am getting 'Permission denied (Errno::EACCESS).

Since the file is unquestionably deletable, I think maybe windows locks
it for whatever reason (or maybe not) - am I doing something wrong, or
if not, is there a workaround for this?

Thanks,
Peter

__
http://www.rubyrailways.com
 
A

ara.t.howard

Hi,

Sorry for these dumb questions but I am really off when it comes to doing
anything with win32.

So, the thing is that I have a function that creates a temp file, then does
something with it and deletes it. I am doing this with

File.delete(temp_filename)

On linux this script runs without any problems, however under windows I am
getting 'Permission denied (Errno::EACCESS).

Since the file is unquestionably deletable, I think maybe windows locks it
for whatever reason (or maybe not) - am I doing something wrong, or if not,
is there a workaround for this?

Thanks,
Peter

gem install linux ??



-a
 
L

Logan Capaldo

Hi,

Sorry for these dumb questions but I am really off when it comes to
doing anything with win32.

So, the thing is that I have a function that creates a temp file, then
does something with it and deletes it. I am doing this with

File.delete(temp_filename)

On linux this script runs without any problems, however under windows I
am getting 'Permission denied (Errno::EACCESS).

Since the file is unquestionably deletable, I think maybe windows locks
it for whatever reason (or maybe not) - am I doing something wrong, or
if not, is there a workaround for this?
Did you #close the file before you tried to delete it?
 
P

Peter Szinek

gem install linux ??

peter@brain:~$ sudo gem install linux
Password:
ERROR: While executing gem ... (Gem::GemNotFoundException)
Could not find linux (> 0) in the repository

Ok, now seriously: I am doing this just to make sure that the gem I am
going to release runs on win32, too. I have a heap of blackbox tests
which I am using besides unit tests to make sure things are working
properly. All I want is to run these tests on win, then go back to my
ubuntu box.

Peter

__
http://www.rubyrailways.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,271
Latest member
BuyAtenaLabsCBD

Latest Threads

Top