script an application starter


I want to script a script to put it into the autostart.
It should enter a directory and open a programm like that

cd /home/user/Documents

I am new with scripting anything and I don’t know which commands need to write.

The script should start (very first line) with the “shebang” indicating which interpreter should handle the script. In your case this most probalby will be


Do not forget to make the scriptfile executable:

chmod u+x <scriptfile>

That’s about all. Success!

thank you

what does chmod u+x do?

On 2009-02-24, STS301 <> wrote:
> what does chmod u+x do?

Set the eXecute-Bit for the User owning the file.
Read “man chmod” about that.

Kind regards,
Andreas Stieger