Posts: 75
jhsu
Joined: 02 Jan 2010
#1
I'm using Virtualbox and using web-based email to transfer small files between the host and guest distros.

A peculiar thing I'm finding is that script files only work if I create them from scratch. When I download a script file, I can't get it to work by executing it, even after setting the permissions to allow it to execute.

Instead, I have to create a brand new blank file, make it executable, and then copy and paste the code from the old file into the new one. When I do this, the script executes like it's supposed to.

What's gong on here? It seems that the process of either uploading or downloading a file changes some hidden characteristic that affects whether or not it executes properly.
Posts: 1,520
eriefisher
Joined: 07 Oct 2007
#2
In the directory of the script(which are just text files/instructions, no magic) open a terminal an"chmod +x nameofscript". This will make the file executable. The in the same terminal/directory"./scriptname". Of course don't actually enter the quotes. This should run the script or at least give you some output.