0

I'm in RHEL 6 with bash as my default shell.

I have a script called startServers

I made a startServers.desktop file which I put on my desktop so I can have the convenience of clicking on an icon to start the script.

It works fine.

Some friends want to use my script. They too are on RHEL 6, but their default shell is CSH.

When I click on "properties" for startServers.desktop I have a text field called "Commands" that is just

/pathtofile/startServers

Can I alter that field so that double clicking on the icon sends the command to bash instead of CSH ? Something like

bash /pathtofile/startServers ?

Thanks

  • If you set a hashbang (#!/bin/bash or #!/usr/bin/env bash) in the first line, this shouldn't be required? – Martin Tournoij Jun 30 '15 at 16:48
  • I gave it a shot. It made no difference, but thanks for responding. – user787832 Jul 1 '15 at 17:56
  • maybe #!/bin/sh. Remember to put it in the very first line – Felipe Lema Jul 2 '15 at 12:52
  • The script is written in bash so I don't think #/bin/sh would help. – user787832 Jul 3 '15 at 13:25

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.