Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Strange "There is not enough space on the disk" error (Win32)

by MrStretch (Sexton)
on Mar 29, 2005 at 04:37 UTC ( [id://443031]=note: print w/replies, xml ) Need Help??


in reply to Strange "There is not enough space on the disk" error (Win32)

This is just a guess so don't yell if I'm wrong.

I believe the problem is that when installing perl you register .pl filehandles and what not, but you also put the perl path in your envirmental path variable. Now I would assume that you have that path because I'll assume you ommitted perl when you ran it without the " > test.out" and you get output when you run it with the perl ommitted.

At first i thought it was a problem with your shebang line; however, that isn't what is causing the problem because I still got that error when running it on a windows machine. Next I thought it might be from the -w. Crash and burn also. Then I struck gold. The problem is in your code itself. For some reason or another the command.exe shell is catching on you system call. It is not a problem with the shell. It is a problem with the code itself.

I believe it is because when you call a system command in perl, you send the command directly to the system, bypassing perl (except perl returns 1 or 0 for success). This somewhat confuses windows (for lack of a better term). This may not be the explanation you were looking for, but it's all i got.

Replies are listed 'Best First'.
Re^2: Strange "There is not enough space on the disk" error (Win32)
by bgreenlee (Friar) on Mar 29, 2005 at 05:04 UTC

    Well, the point of system *is* to execute a system command. There is no "system" function in cmd.exe anyway.

    I think it may have something to do with Windows not being able to do a proper fork. Perhaps the way fork is done makes stdout unavailable, and you end up basically trying to redirect something null or undefined?

    -b

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://443031]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (9)
As of 2024-03-28 08:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found