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

what language you use to write script in linux?

0 views
Skip to first unread message

cmk...@gmail.com

unread,
Apr 25, 2009, 4:02:28 PM4/25/09
to
what language you use to write script in linux?

The Natural Philosopher

unread,
Apr 25, 2009, 4:25:05 PM4/25/09
to
cmk...@gmail.com wrote:
> what language you use to write script in linux?
C :-)

Robert Heller

unread,
Apr 25, 2009, 4:55:24 PM4/25/09
to
At Sat, 25 Apr 2009 13:02:28 -0700 (PDT) cmk...@gmail.com wrote:

>
> what language you use to write script in linux?

bash/sh, csh/tcsh, tclsh/wish

>

--
Robert Heller -- 978-544-6933
Deepwoods Software -- Download the Model Railroad System
http://www.deepsoft.com/ -- Binaries for Linux and MS-Windows
hel...@deepsoft.com -- http://www.deepsoft.com/ModelRailroadSystem/

Baron

unread,
Apr 25, 2009, 5:00:13 PM4/25/09
to
cmk...@gmail.com wrote:

> what language you use to write script in linux?

English.

--
Best Regards:
Baron.

Jules

unread,
Apr 25, 2009, 4:53:45 PM4/25/09
to

Oh come on, Javascript it up to the eyeballs and insist that the user have
a web browser. It's the way forward... ;)


Maxwell Lol

unread,
Apr 25, 2009, 5:04:06 PM4/25/09
to
Robert Heller <hel...@deepsoft.com> writes:

> At Sat, 25 Apr 2009 13:02:28 -0700 (PDT) cmk...@gmail.com wrote:
>
>>
>> what language you use to write script in linux?
>
> bash/sh, csh/tcsh, tclsh/wish

or
perl, ruby, awk, sed, python

Linerd

unread,
Apr 25, 2009, 5:05:14 PM4/25/09
to
On Sat, 25 Apr 2009 13:02:28 -0700, cmk128 wrote:

> what language you use to write script in linux?

I like bash
http://tuxtweaks.com/category/bash/

John Hasler

unread,
Apr 25, 2009, 5:19:31 PM4/25/09
to
Jules writes:
> Oh come on, Javascript it up to the eyeballs and insist that the user
> have a web browser. It's the way forward... ;)

For certain values of forward...
--
John Hasler
jo...@dhh.gt.org
Dancing Horse Hill
Elmwood, WI USA

Mark Hobley

unread,
Apr 25, 2009, 6:08:02 PM4/25/09
to
Maxwell Lol <nos...@com.invalid> wrote:
> perl, ruby, awk, sed, python

I like rexx

Mark.

--
Mark Hobley
Linux User: #370818 http://markhobley.yi.org/

Balwinder S Dheeman

unread,
Apr 25, 2009, 6:18:27 PM4/25/09
to
On 04/26/2009 03:38 AM, Mark Hobley wrote:
> Maxwell Lol <nos...@com.invalid> wrote:
>> perl, ruby, awk, sed, python
>
> I like rexx

Do try rc(1), a Plan9 shell http://plan9.bell-labs.com/sys/doc/rc.html

See http://swtch.com/plan9port/ and a web/cms framework
http://werc.cat-v.org/ written in rc itself.

--
Balwinder S "bdheeman" Dheeman Registered Linux User: #229709
Anu'z Linux@HOME (Unix Shoppe) Machines: #168573, 170593, 259192
Chandigarh, UT, 160062, India Plan9, T2, Arch/Debian/FreeBSD/XP
Home: http://cto.homelinux.net/~bsd/ Visit: http://counter.li.org/

The Natural Philosopher

unread,
Apr 26, 2009, 5:09:15 AM4/26/09
to
In short the answer is 'whatever you feel like' Unlike people, computers
have no religion.

ray

unread,
Apr 26, 2009, 10:13:34 AM4/26/09
to
On Sat, 25 Apr 2009 13:02:28 -0700, cmk128 wrote:

> what language you use to write script in linux?

Pick one. There are plenty to choose from, depending on what you want to
do. As already mentioned, all the shells - some folks realy like Python -
there are several dozen more.

Bombadil

unread,
Apr 26, 2009, 3:47:59 PM4/26/09
to
cmk...@gmail.com <cmk...@gmail.com> wrote:
> what language you use to write script in linux?

I see that the monkeys are having fun throwing fruit
at you.

The first scripting language you need to get a handle
on is bash, because it's integrated into the shell, which
gives you the command line (yes, there are other shells
but bash is by far the most common). You won't ever be
good with Linux unless you learn the basics of bash.

After that, there are all sorts of scripting languages.
Most distros require perl/python/ruby to boot and run,
but slackware and its derivatives don't, which is a good
enough reason all of itself for choosing it.

Bombadil

Hadron

unread,
Apr 26, 2009, 4:00:39 PM4/26/09
to

What nonsense. Bash is by far and away the most prevalent in Linux
systems.

--
In view of all the deadly computer viruses that have been spreading
lately, Weekend Update would like to remind you: when you link up to
another computer, you’re linking up to every computer that that
computer has ever linked up to. — Dennis Miller

Hadron

unread,
Apr 26, 2009, 4:00:59 PM4/26/09
to
Bombadil <jus...@hometown.invalid> writes:

> cmk...@gmail.com <cmk...@gmail.com> wrote:
>> what language you use to write script in linux?
>
> I see that the monkeys are having fun throwing fruit
> at you.

Amazing isn't it?

The first thing to mention was bash since it's so widely used in Linux
for all sorts. The when you know your way around look into the evils of
Python and Perl etc.

>
> The first scripting language you need to get a handle
> on is bash, because it's integrated into the shell, which
> gives you the command line (yes, there are other shells
> but bash is by far the most common). You won't ever be
> good with Linux unless you learn the basics of bash.

hear hear.

>
> After that, there are all sorts of scripting languages.
> Most distros require perl/python/ruby to boot and run,
> but slackware and its derivatives don't, which is a good
> enough reason all of itself for choosing it.
>
> Bombadil
>

Well said. I wasn't going to tip the cart but you did so I'll give it a
hearty shove too.

Maxwell Lol

unread,
Apr 26, 2009, 4:52:30 PM4/26/09
to
Bombadil <jus...@hometown.invalid> writes:

> cmk...@gmail.com <cmk...@gmail.com> wrote:
>> what language you use to write script in linux?
>
> I see that the monkeys are having fun throwing fruit
> at you.

excuse me? We answered the question. He asks us what WE use.
He didn't ask what should be the first shell script HE should learn.

If he asked us that, I whould have said the POSIX shell.

Harold Stevens

unread,
Apr 26, 2009, 5:34:48 PM4/26/09
to
In <87ocuj2...@com.invalid> Maxwell Lol:

[Snip...]

> the first shell script HE should learn

IMO, he should learn Usenet isn't a good homework resource.

--
Regards, Weird (Harold Stevens) * IMPORTANT EMAIL INFO FOLLOWS *
Pardon any bogus email addresses (wookie) in place for spambots.
Really, it's (wyrd) at airmail, dotted with net. DO NOT SPAM IT.
I toss GoogleGroup posts from gitgo (http://improve-usenet.org).

The Natural Philosopher

unread,
Apr 26, 2009, 5:40:26 PM4/26/09
to
Hadron wrote:
> The Natural Philosopher <t...@invalid.invalid> writes:
>
>> Jules wrote:
>>> On Sat, 25 Apr 2009 21:25:05 +0100, The Natural Philosopher wrote:
>>>
>>>> cmk...@gmail.com wrote:
>>>>> what language you use to write script in linux?
>>>> C :-)
>>> Oh come on, Javascript it up to the eyeballs and insist that the user have
>>> a web browser. It's the way forward... ;)
>>>
>>>
>> In short the answer is 'whatever you feel like' Unlike people, computers
>> have no religion.
>>
>
> What nonsense. Bash is by far and away the most prevalent in Linux
> systems.
>
think you will find the majority of programs in a linux distro are in
fact written in 'C' or C++...;-)

But you haven't even addressed my point: The computer doesn't care. You
do. You've got religion. The computer has not.


Chris F.A. Johnson

unread,
Apr 26, 2009, 10:41:04 PM4/26/09
to
On 2009-04-26, Bombadil wrote:
> cmk...@gmail.com <cmk...@gmail.com> wrote:
>> what language you use to write script in linux?
...

> The first scripting language you need to get a handle
> on is bash, because it's integrated into the shell,

Bash is not integrated into the shell, it *is* the shell.

> which
> gives you the command line (yes, there are other shells
> but bash is by far the most common). You won't ever be
> good with Linux unless you learn the basics of bash.

Learning the basics of the POSIX shell (of which bash is one) will
stand you in better stead.

--
Chris F.A. Johnson, author | <http://cfaj.freeshell.org>
Shell Scripting Recipes: | My code in this post, if any,
A Problem-Solution Approach | is released under the
2005, Apress | GNU General Public Licence

Jules

unread,
Apr 27, 2009, 10:50:19 AM4/27/09
to
On Sun, 26 Apr 2009 22:40:26 +0100, The Natural Philosopher wrote:
> think you will find the majority of programs in a linux distro are in
> fact written in 'C' or C++...;-)

But those are compiled languages, not scripts ;)

<runs>

Maurice Batey

unread,
Apr 27, 2009, 12:01:56 PM4/27/09
to
On Sun, 26 Apr 2009 22:00:59 +0200, Hadron wrote:

> when you know your way around look into the evils of
> Python and Perl etc.

Or even Rexx...

--
/\/\aurice
(Retired in Surrey, UK) Registered Linux User #487649
Linux Mandriva 2.6.27.19-desktop-1mnb (i686) 2009.0 32-bit
KDE 3.5.10 Virtualbox 2.1.4
(Replace "nomail.afraid" by "bcs" to reply by email)

The Natural Philosopher

unread,
Apr 27, 2009, 12:29:03 PM4/27/09
to
Well machine code is interpreted my processor microcode these
days..script scmhitt.. ;-)

Jules

unread,
Apr 27, 2009, 3:48:54 PM4/27/09
to

haha - touché! :-)


Nathan Keel

unread,
Apr 29, 2009, 1:09:29 AM4/29/09
to
Hadron wrote:

> The Natural Philosopher <t...@invalid.invalid> writes:
>
>> Jules wrote:
>>> On Sat, 25 Apr 2009 21:25:05 +0100, The Natural Philosopher wrote:
>>>
>>>> cmk...@gmail.com wrote:
>>>>> what language you use to write script in linux?
>>>> C :-)
>>>
>>> Oh come on, Javascript it up to the eyeballs and insist that the
>>> user have a web browser. It's the way forward... ;)
>>>
>>>
>> In short the answer is 'whatever you feel like' Unlike people,
>> computers have no religion.
>>
>
> What nonsense. Bash is by far and away the most prevalent in Linux
> systems.
>

And bash can be a hassle when things start getting too complex or the
task too large, which is why things like Perl are often better. But,
like most people, I use bash often, and Perl just as often. To each
their own, a lot of commands without bash or Perl will be pretty
powerful, too, but Python, Ruby and PHP also exist and you can install
them if they aren't available.

0 new messages