LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   copying a file from windows nt to slax linux distro (https://www.linuxquestions.org/questions/linux-general-1/copying-a-file-from-windows-nt-to-slax-linux-distro-326199/)

mrobertson 05-23-2005 07:48 AM

copying a file from windows nt to slax linux distro
 
I currently have wrote a lient server program in real basic. Being that I dont have much experience with linux, I figured that I could write the code in real basic and then build its linux application. I built the application and copied it to the pc that I will be using to run linux. I currently have the slax distro version of linux. I need to get the file that I copied to windows into linux to make executable. I have tried the following command which I thought would do the trick but did not:

chmod a+x /mnt/c/MyApplication

The file is on my C:\ Drive and I thought that I could mount to it to access the file. Does anyone know how I would go about accessing this file and being able to run it as an executable?

acid_kewpie 05-23-2005 08:17 AM

I've no idea about wether the program should actaully run at all, but you can't use chmod against files on non-unix filesystems, as there is just nowhere for this data to go. Additionally, this is a compiled windows program?? well it won't run under linux without cross-compiling it.

corfe 05-23-2005 10:20 PM

For filesystems like NTFS / FAT32 that don't contain the regular file attributes linux uses (the permissions, etc.), in order to run executables on that drive, you either have to mount it with the "exec" option, or you have to copy it to your linux drive first, then modify its permissions to allow execution and execute it. However, I'm left wondering the same thing as the previous poster; does real basic actually compile programs for linux, that don't need any kind of modification? I don't know anything about it, but it sounds doubtful.

Anyways, if you find that doesn't work, and you're feeling courageous, you can always try downloading wine the windows emulator "wine is not an emulator", and see if you can get realbasic working. The long-term solution, however, if you really find linux interesting and want to develop for it, is to learn one of its primary languages; C, C++, Perl, Python, or something of the like.

Good luck!


All times are GMT -5. The time now is 06:01 AM.