twitter
    Find out what I'm doing, Follow Me :)

Make a script on Ubuntu

Create a script file with a text editor
sudo gedit myScript.sh


Insert text for a simple test:

#!/bin/sh

echo Hello World
echo
echo -n Press return to continue...
read ans


In the Command section of the Launcher setup, the following would be specified:
sh /home/user/myScript.sh

Or alternatively, if the script has execute permissions:
/home/user/myScript.sh


If you want make the script executable:
sudo chmod 744 myScript.sh

0 comments:

Post a Comment