Results 1 to 3 of 3
Have a problem in executing this script on Backtrack 4:
Code:
chmod +x firefox
/root/Desktop/firefox/firefox
I wrote this script in Kate (my default editor) and saved it as firefox.sh. When ...
- 08-04-2011 #1Just Joined!
- Join Date
- Jul 2011
- Posts
- 3
Script not executing in Backtrack 4
Have a problem in executing this script on Backtrack 4:
I wrote this script in Kate (my default editor) and saved it as firefox.sh. When I click on it, instead of it executing, Kate opens up and displays the script.Code:chmod +x firefox /root/Desktop/firefox/firefox
How do I make it executable?
Thanks in advance
- 08-04-2011 #2Linux Guru
- Join Date
- May 2011
- Posts
- 1,842
Backtrack is Ubuntu-based, right? So you are in a GNOME desktop environment? What does your script look like? If a desktop shortcut, it needs to be in a certain format, e.g., here's a sample file, called /home/user/Desktop/firefox.desktop (note the ".desktop" extension):
Code:[Desktop Entry] Version=1.0 Encoding=UTF-8 Name=Firefox Web Browser GenericName=Web Browser Comment=Browse the Web Exec=firefox Icon=firefox.png Terminal=false Type=Application MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml; X-Desktop-File-Install-Version=0.9 Categories=Network;Application;X-Fedora; Name[en_US]=Firefox
- 08-05-2011 #3Just Joined!
- Join Date
- Jul 2011
- Posts
- 3
Its working now. I didnt do anything but its working. Strange!


Reply With Quote