#figure out which line the script starts at
LINE=$(awk '/^START OF SCRIPT$/ { print NR + 1 }' $0)
# copy everything starting from $LINE to /tmp/myscript.sh
tail -n+$LINE $0 > /tmp/myscript.sh
# Run /tmp/myscript.sh
exec xterm -e bash /tmp/myscript.sh
Posted: Fri 03 Dec 2010, 11:54 Post subject:
Re: how to make bashscript a clickable one?
enhu wrote:
is there a way?
i actually remember there is a way in puppy i just can't find it while searching. can you please lead me to the link.
Right click on the file. From the pop-up, select 'properties' and in that dialogue, check the 'exec' boxes in the permissions section. _________________ Spup Frugal HD and USB
Root forever!
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum