LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 05-23-2005, 07:48 AM   #1
mrobertson
Member
 
Registered: May 2005
Posts: 275

Rep: Reputation: 30
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?
 
Old 05-23-2005, 08:17 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,345

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
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.
 
Old 05-23-2005, 10:20 PM   #3
corfe
Member
 
Registered: Dec 2004
Location: Washington State, USA
Distribution: Debian Sid
Posts: 128

Rep: Reputation: 15
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
copying files from linux to windows Nigel Robinson Linux - Newbie 11 07-27-2005 02:41 PM
copying between remote linux to windows klyshi Linux - Networking 2 04-16-2005 02:19 AM
copying linux file to windows workstation shadowsurfer Linux - Networking 3 09-17-2004 09:54 AM
scp copying from Linux to windows richard3403 Linux - Networking 2 11-06-2003 07:31 AM
copying files from windows to linux susyq78 Linux - Newbie 6 08-10-2003 09:21 PM


All times are GMT -5. The time now is 03:17 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration