Click to See Complete Forum and Search --> : Making an executable script file


Antonis
08-05-2001, 03:10 AM
Hye,

can you please tell me how to make an executable file in linux?

Thanks

The Whizzard
08-05-2001, 03:29 AM
Do you already have the script saved? If so, chmod 777 filename to make it executable. Replace filename with the filename of the script.

Antonis
08-05-2001, 03:38 AM
I tried this one but then I try to run the script by typing ./filename but I get the following error

bash: ./unpacktars: No such file or directory

bdg1983
08-05-2001, 05:42 AM
Try a 'ls -al' in the directory that the script resides in. Check that the permissions are rwxrwxrwx (will be after chmod 777) and the filename is correct remembering case sensitive.

If everything is correct, then ./filename should work.

Antonis
08-05-2001, 02:04 PM
You are right the permissions are -rwxrwxrwx

The file is also shown on green letter and with the * next to it.

But I still cannot run the script file. I also called some of my friends but they dont know either.

Anyway thanks for you help I really appreciate it.