Mailinglist Archive: opensuse (818 mails)

< Previous Next >
Re: [opensuse] different types of shell scripts
  • From: Roger Oberholtzer <roger@xxxxxx>
  • Date: Thu, 22 Sep 2011 14:52:51 +0200
  • Message-id: <1316695971.21158.56.camel@acme.pacific>
On Thu, 2011-09-22 at 14:02 +0200, jdd wrote:
Le 22/09/2011 13:20, Roger Oberholtzer a écrit :
On Thu, 2011-09-22 at 10:40 +0200, jdd wrote:

chmod +x filename.sh
./filename.sh

by the way, for a shell script, simply use "sh ./filename"

Of course that works. OTOH, if the script starts with, say,

#!python

if a filename.sh script runs python, it's pretty badly named :-)

I was thinking in more general terms. Nonetheless, one should be careful
of scripts pulled off the 'net. The name and the contents may not match.


Yours sincerely,

Roger Oberholtzer

OPQ Systems / Ramböll RST

Office: Int +46 10-615 60 20
Mobile: Int +46 70-815 1696
roger.oberholtzer@xxxxxxxxxx
________________________________________

Ramböll Sverige AB
Krukmakargatan 21
P.O. Box 17009
SE-104 62 Stockholm, Sweden
www.rambollrst.se


--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >