pamongi
Posts: 1
Joined: Wed Jan 22, 2014 2:18 pm

Shortcut to terminal commands

Wed Jan 22, 2014 2:31 pm

Hello,

I am a researcher and I am using the RasPi to run experiments in my lab, with the OpenSesame software. Now- the software needs to be launched from the terminal with a couple of lines of commands. Nothing too complicated, but since I have many non linux-friendly people using the software I would like to make the thing easier for them.

So, is there a way that I can create a shortcut on the desktop that automatically runs the following commands in the terminal:

Code: Select all

cd ~/OpenSesame-release-0.27.4
python opensesame

I am sure it is a very basic question, but somehow I could not find a definitive answer here or elsewhere. I will be grateful to anyone who could provide some help.

Paolo

AndiTails
Posts: 9
Joined: Tue Jan 21, 2014 8:35 pm

Re: Shortcut to terminal commands

Wed Jan 22, 2014 5:17 pm

Covered here, I think: http://www.raspberrypi.org/phpBB3/viewt ... =27&t=9817

You can either create a .destop file or create a bash script in your Desktop folder with chmod a+x to make it executable and it should just run when double-clicked.

And your bash script would simply be:

Code: Select all

#!/bin/bash
cd ~/OpenSesame-release-0.27.4
python opensesame

Return to “Raspberry Pi OS”