[solved] Perl program problem in Linux guest

Discussions about using Linux guests in VirtualBox.
Post Reply
Bestiau
Posts: 3
Joined: 27. May 2009, 10:44
Primary OS: Mac OS X Leopard
VBox Version: OSE other
Guest OSses: Ubuntu (8.04 and 9.04), Fedora 10

[solved] Perl program problem in Linux guest

Post by Bestiau »

Hi all,

first, I'm French and I don't speak English very well. So sorry for my mistakes... :oops:

Host : Mac OSX 10.5.7
Guests : Ubuntu 8.04.2, Ubuntu 9.04 and Fedora 10
VirtualBox version 2.2.2 r46594

I have to run a Perl script on Mac which call a programm named MATCH that is not compiled for Mac.
I tested my Perl script on PC (with Suse Linux pro 9.3) and it works well.
My Perl script generate a text file, close it, open it again and add text, close it, open again to add text etc...
But, with virtualbox (in any guests ubuntu and Fedora), there is a problem : each time my file is open (except the first time), there is many caracters "\0\0\0" which are added to my file before added my text. It's a very big problem because size of generated file in PC is 630Mo, and size of not complete generated file in virtual machin is more than 300Go (So I have to stop my script before the end).

I had posted this problem on development forum (http://www.developpez.net/forums/d75041 ... -fichiers/) and on ubuntu forum (http://forum.ubuntu-fr.org/viewtopic.ph ... 8#p2684028) but I had no answer...

So I go here : Do you know about this problem? Is it a virtual box problem? Is there a solution?

Thanks for answer
Last edited by Bestiau on 27. May 2009, 12:09, edited 1 time in total.
fixedwheel
Volunteer
Posts: 1699
Joined: 13. Sep 2008, 02:18

Re: Perl program problem in Linux guest

Post by fixedwheel »

Hi,
My Perl script generate a text file, close it, open it again and add text, close it, open again to add text etc...
does the script open/close the textfile in a guest additions shared folder?
Bestiau
Posts: 3
Joined: 27. May 2009, 10:44
Primary OS: Mac OS X Leopard
VBox Version: OSE other
Guest OSses: Ubuntu (8.04 and 9.04), Fedora 10

Re: Perl program problem in Linux guest

Post by Bestiau »

yes, there is a problem with shared folder?
fixedwheel
Volunteer
Posts: 1699
Joined: 13. Sep 2008, 02:18

Re: Perl program problem in Linux guest

Post by fixedwheel »

dont know exactly, IIRC you should not e.g. compile on shared folder.
Better to only use as file transfer, dont let programs work on it: use samba share instead or let the script work on the guests filesystem inside the VDI
Bestiau
Posts: 3
Joined: 27. May 2009, 10:44
Primary OS: Mac OS X Leopard
VBox Version: OSE other
Guest OSses: Ubuntu (8.04 and 9.04), Fedora 10

Re: Perl program problem in Linux guest

Post by Bestiau »

Thank you very much!!!

I copied my shared folder on the guest, and then I tried my script, and the problem disappear :mrgreen:

It's very very cool :D
Post Reply