double-click to run .sh file
Posted
by Delirium tremens
on Super User
See other posts from Super User
or by Delirium tremens
Published on 2010-04-15T01:16:57Z
Indexed on
2010/04/15
1:23 UTC
Read the original article
Hit count: 363
GUI:
I changed the permissions of an sh file, so that I can read, write and execute it.
I double-clicked it, selected run in Terminal, but it didn't run.
I double-clicked it, selected run, but it didn't run.
Command-Line:
bash *filename*
runs it
sh *filename*
runs it
The file content is:
#!/bin/bash
# get dirsyncpro home
DIRSYNCPRO_HOME="$(dirname $0)"
# start programm and pass any parameters
java -Xmx512M -jar "$DIRSYNCPRO_HOME/dirsyncpro.jar" $*
Works in this person's computer:
http://www.knowliz.com/2008/08/how-to-installrun-sh-file-in-linux.html
What's going on?
© Super User or respective owner