[aklug] Re: (ana)cron & Linux Counter update script

From: Jim Gribbin <jimgribbin@gmail.com>
Date: Sun Oct 31 2010 - 18:22:56 AKDT

I'm getting lost here.

Does this mean '#' is not always a comment?

I guess I'll have to break down and read up on some scripting :-) Found a tutorial on 'www.linuxconfig.org' that assumes no previous knowledge ...

Jim G

----- Original Message -----
From: "Jeremy Austin" <jhaustin@gmail.com>
To: "Alaska Linux Users Group" <aklug@aklug.org>
Sent: Sunday, October 31, 2010 5:55:08 PM
Subject: [aklug] Re: (ana)cron & Linux Counter update script

On Sun, Oct 31, 2010 at 5:07 PM, Jim Gribbin <jimgribbin@gmail.com> wrote:
> I was going to, but all the other files start with:
>
> '#!/bin/sh' or '#!/bin/bash'
>
> which believe means it's commented out. I'm guessing it was put there for form.

It's not form. While bash may be the default interpreter, a script in
another language would start

#!/usr/bin/python

or

#!/usr/bin/php

et cetera. If you execute the script ./foo, then the interpreter
listed on that first line will be executed, with file foo as input.

jermudgeon
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Sun Oct 31 18:23:12 2010

This archive was generated by hypermail 2.1.8 : Sun Oct 31 2010 - 18:23:12 AKDT