Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-4041-

How hard is it on making Shell Scripts?

Name: Anonymous 2006-10-04 0:41

Is it really hard? What do you need to know...?

Name: Anonymous 2006-10-04 1:00

You need to know how to use the shell you're writing the script for (probably sh or bash), and need to understand basic things such as variables and loops.

This'll get you started:
http://pegasus.rutgers.edu/~elflord/unix/bash-tute.html

And this'll keep you going:
http://tldp.org/LDP/abs/html/

Name: Anonymous 2006-10-04 2:16

Only an idiot writes a shell script. Non-morons use an actual language. Hay guyz, almost every *nix machine out there has perl & python on it. Get with the times.

Don't worry, you'll understand soon enough why sh scripting sucks so horribly bad.

Name: Anonymous 2006-10-04 5:09

>>3
So, you want to write perl and/or python just to open the mplayer with some arguments so that you don't have to type them every time?

Name: Anonymous 2006-10-04 5:33 (sage)

>>4
Alias, bitch.

Name: Anonymous 2006-10-04 7:57

>>5

And edit the bahsrc for EVERY user in the system (even for ones that will be added in the future), because all aliases get lost after logout?

Why not just write a shell-script and put it into /usr/bin?
It's easier and faster. Also, you can change it easily by editing ONE file.

Name: Anonymous 2006-10-04 7:59

>>3
yeah. and one single damn program needs 30M of RAM-space because the runtime needs that much.

instant fail.

Name: Anonymous 2006-10-04 8:11

>>6
/etc/bash.bashrc or /etc/profile.

Not that I think it's a good solution.

Name: Anonymous 2006-10-04 9:02

>>8
Oh, I didn't know these  oO
But can Desktop-Environments handle it? I mean, I can choose my amplayer.sh in the Gnome-"Open-with"-dialog and it works just fine.

Name: Anonymous 2006-10-04 9:50

>>7
lol priorities. You might want to learn about copy-on-write before going out ricing next time. And what about all those command-line utilities you have to call to get anything beyond a toy done? I guess all that fork/execveing is free, huh?

Seriously, how many people in this thread have written something beyond a simple loop in Bash? You know, maybe longer than ten lines or so? Shell coding is the ugliest thing since Intercal.

Name: ranix 2006-10-04 10:11

Actually my company uses bash scripts to do daily backups to DLT, handle mailserver restarts, send administrator alert emails, manage load/activity monitors with tail and watch, and play the hold music for the phone system (lol).

you and your interpreted languages can eat a dick all day

Name: Anonymous 2006-10-04 10:11

>>10
Which doesn't make Perl or Python with it's runtime (which still needs to be initialized) a better alternative for some tasks.

Oh man. Another one who thinks that there is *the* language for everything...
THE CHOICE OF THE LANGUAGE IS CORRECT IF IT WORKS.

And a shell-script works *everywhere*.
Python doesn't.

Name: Anonymous 2006-10-04 13:26

>>6
/etc/profile MOTHERFUCKER, DO YOU USE IT?

Name: Anonymous 2006-10-04 14:27

shell is not half as ugly as perl.

Name: Anonymous 2006-10-04 15:14

Anything serious enough to require a shell script requires a serious scripting language. Good choices include Ruby, Python, and Perl if you already know it.
For interactive usage, choose fish, it's the least painful shell available. http://fishshell.org/

Name: Anonymous 2006-10-04 17:13 (sage)

>>9
man mplayer, bitch
/usr/local/etc/mplayer/mplayer.conf (probably not there, but rather /etc/mplayer/mplayer.conf)
~/.mplayer/config

Name: Anonymous 2006-10-04 19:07 (sage)

PROTIP: don't use mplayer.

Name: Anonymous 2006-10-04 22:21

>>12
a better alternative for some tasks.
For very few definitions of "some tasks". What exactly have you written in sh, hmm?

THE CHOICE OF THE LANGUAGE IS CORRECT IF IT WORKS.
A thought experiment: write a parser in ML or assembly. Both work, but one takes a lot more effort. Which one is correct?

Frankly, the entire bourne shell sucks, but being a rabid penguin fucker you'll never grasp that.

Name: Anonymous 2006-10-04 23:19 (sage)

what the FUCK is going on in this thread

you're all a bunch of fucktarded morons (I'm looking at you >>12)

FUCK sage     I can't sage this shit hard enough

Name: Anonymous 2006-10-04 23:19 (sage)

sage

Name: Anonymous 2006-10-04 23:20 (sage)

sage

Name: Anonymous 2006-10-04 23:20 (sage)

sage

Name: Anonymous 2006-10-04 23:20 (sage)

sage

Name: Anonymous 2006-10-04 23:20 (sage)

sage

Name: Anonymous 2006-10-04 23:20 (sage)

sage

Name: Anonymous 2006-10-04 23:20 (sage)

sage

Name: Anonymous 2006-10-04 23:42

>>11
Can you elaborate on how that computer answering phone thing is done?

Name: Anonymous 2006-10-04 23:43

>>27
eat a dick all day long

Name: Anonymous 2006-10-04 23:59

Name: Anonymous 2006-10-05 0:00 (sage)

sage

I tried to get rid of it but it didn't work

Name: Anonymous 2006-10-05 0:03

>>30
Steve Jobs prevails again.

Name: Anonymous 2006-10-05 2:19

>>16
I don't want this to be a standard config ALL the time.

>>17
Why?

>>18
For very few definitions of "some tasks". What exactly have you written in sh, hmm?
I already wrote this. U need to read moar.
Also, a 250 line-script that initializes global variables and starts a program with some parameters.

Which one is correct?
Depends. If you need assembly functions, then it is better. But if you need to initialize a 30M runtime just to run a script that does some small tasks, then something is wrong.
Also, I haven't found anything in the bash-language that it can't do (at least nothing I needed). Just because you don't like the language because it is (obviously) a bit strange, doesn't mean that it is worse than others.

I mean, people use Java, too. I hate it, but you have big portability! If you don't need that, why the hell would you use Java?

Name: Anonymous 2006-10-05 8:11

>>32 is a fag

Name: Anonymous 2006-10-05 8:14 (sage)

>>1
#!/bin/sh
mplayer -faggotry $@

Now let this スレ die.

Name: Anonymous 2006-10-05 8:32

このスレはもう死んでいる

Name: Anonymous 2006-10-05 10:13

スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ スレ

Name: Jalal 2011-12-30 16:11

give the bride and her parents a feel of being sentimental http://www.beendress.com/  discounted bridesmaids dresses  http://www.beendress.com/Wedding-Dresses-Beach-Wedding-Dresses.html  cheap beach wedding . http://www.beendress.com/Cocktail-Dresses.html  corset cocktail dresses

Name: short cocktail dresses 2012-06-07 16:51

http://www.publicdress.org/  bridal dress Adrianna Papell evening dresses any woman attending formal party will surely stand out from the crowd http://www.publicdress.org/  celebrity dresses . The materials used in their evening dresses are made from high quality materials. And not only is it high in quality but also offers great comfortability to women wearing it. <br> They have great designs and styles ranging from and elegant overlapping After a background in the music world http://www.publicdress.org/Homecoming-Dresses.html  hot short dresses , Phyllis Sika has launched the project about four years ago, driven by the desire to export a taste for bold colors and fabrics, typical of the Ghanaian culture in the western world . “ When I was little, we went to Ghana every summer to work the ropes and watched fascinated and thought it was a pity that

Don't change these.
Name: Email:
Entire Thread Thread List