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.
how to make bashscript a clickable one?
Think this works:
Code: Select all
[ "$DISPLAY" ] && [ "$(tty | grep not)" ] && exec rxvt -e sh -c $0
Perhaps this ......
Cheers,
s
Code: Select all
#!/bin/bash
# clickable script
#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
START OF SCRIPT
--- your code here ----
s
Re: how to make bashscript a clickable one?
Right click on the file. From the pop-up, select 'properties' and in that dialogue, check the 'exec' boxes in the permissions section.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.
Spup Frugal HD and USB
Root forever!
Root forever!