Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

making file executable

3 views
Skip to first unread message

rabbit

unread,
Sep 8, 2009, 2:35:51 PM9/8/09
to
I am running both Ubuntu and Scientific Linux (which is just RedHat
rebranded, I think). I have a small shell script on both desktops called
nowire.

For both, I did chmod +x nowire

when I click in ubuntu, the shell script runs
when I click in redhat, the file opens in a wordprocessor, not matter
what I do.

ubuntu has gnome and the redhat has kde, which may be the problem (?)
but i want the script to run in redhat. what am I missing?

rK

Bit Twister

unread,
Sep 8, 2009, 7:06:53 PM9/8/09
to


Just a WAG, have you tried right clicking the shortcut, properties and
playing with the run in terminal or some such items?

rabbit

unread,
Sep 9, 2009, 1:55:50 AM9/9/09
to
yes I tried that. someone on another group suggested the line:
#!/bin/bash as the first line

i don't know why it works on ubuntu


rK

glenbadd

unread,
Sep 9, 2009, 8:37:06 PM9/9/09
to

Could be the difference between running the script with the userid's
default shell rather than a specific shell (bash).

Hans Wolfenstein

unread,
Sep 23, 2009, 10:46:03 PM9/23/09
to

How about:

chmod a+x ./nowire

John B. slocomb

unread,
Jun 12, 2010, 8:36:11 AM6/12/10
to


Try going to the command line and typing the complete path -
/home/rabbit/nowire and see what happens. If it doesn't work try
either "sudo" or switch users to root.

Check, are the permissions correct? If they are then certainly one of
these methods should run the program or give an informative error
message.

Another thing (I don't use KDE) is bash the shell program in KDE?

Cheers,

John B.
(johnbslocombatgmaildotcom)

0 new messages