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

Automatic Shutdown

Name: Anonymous 2008-04-26 6:53

I need to find a way to shut down my Linux PC (Ubuntu 8.04 Server) after it has up & downloaded 100MB.
Anyone has any idea on how to do this?

Name: Anonymous 2008-05-02 7:18

>>36
Now that I think about it, it make be putting a double quotes on your RX and TX variables. This may not show up when calling echo since it removes double quotes. However, $((...)) probably can't deal with quoted numbers.

Change
echo RX: $RX
to
set | grep RX
and similarly for TX, then tell us the output.

Name: Anonymous 2008-05-02 7:19

>>39
You're that irritating wanker who turns up to a party and pisses everyone off by being obnoxious, but doesn't take the hint about leaving.

Name: Anonymous 2008-05-02 7:43

>>38
GNU bash, version 3.2.33(1)-release (i486-pc-linux-gnu)
Copyright (C) 2007 Free Software Foundation, Inc.

Name: Anonymous 2008-05-02 7:45

When I paste in my terminal it works

>>38
GNU bash, version 3.2.33(1)-release (i486-pc-linux-gnu)
Copyright (C) 2007 Free Software Foundation, Inc.

Name: Anonymous 2008-05-02 7:45

>>43
Hmm, that should work then.

Try just typing echo $((1234+103)) in your bash shell.

Name: Anonymous 2008-05-02 11:33

>>45
echo $((1234+103))
1337

This is really weird

Name: Anonymous 2008-05-02 12:38

$((RX + TX))
No $'s needed.

Name: Anonymous 2008-05-02 16:14

>>46
...you're joking.

Name: Anonymous 2008-05-02 16:16

RX=`ifconfig eth0 | grep "RX bytes" | sed -e's/\s*RX bytes:\([0-9]*\).*/\1/g'`
TX=`ifconfig eth0 | grep "TX bytes" | sed -e
's/.*TX bytes:\([0-9]*\).*/\1/g'`

Name: Anonymous 2008-05-02 16:41

When I was a kid, I contrived an ingenious contraption with Lego TECHNIC. Using the basic motor, it converted the rotation into repeated up and down thrust that was applied to the `A' button on the Game Boy ADVANCE, which happened to be bound to the procedure swing-whip in the Castlevania game. Making use of my bogus ploy, I could banish multitudes of undead every night and earn experience with little or none effort.

Anyway, OP, I suggest doing something like that.

Name: Anonymous 2008-05-02 16:58

>>50
I lol'd, actually out loud

Name: Anonymous 2008-05-02 17:00

>>51
You laughed out loud actually out loud?

Astounding.

back to /b/, please.

Name: Anonymous 2008-05-02 17:09

>>52
No, no, no.
He laugh out loud'd, actually out loud.
learn2acronymexpansion

Name: Anonymous 2008-05-02 17:10

>>53
LOL Out Loud.

Name: Anonymous 2008-05-02 17:12

>>53
Substitution model considered harmful

Name: Anonymous 2008-05-02 17:19

>>55
Clearly, you haven't seen the 5a SICP video.

While we're at it, please take a look at this:

http://img168.imageshack.us/img168/783/shot2vr4.png

Name: Anonymous 2008-05-02 18:08

For fuck's sake, OP.

If you can't get my solution to work then try something else. Google, read, try. What the fuck.

Name: Anonymous 2008-05-02 19:09

>>57
ubanto

Name: Anonymous 2008-05-02 19:53

>>54
Lolling online.

Name: Anonymous 2008-05-02 20:02

Ubanto is hot *grabs dick*

Name: Anonymous 2008-05-02 20:09

>>60
If you pay me enough I'll give you access to a private area

Name: Anonymous 2008-05-02 20:54

>>61
meme butcher

Name: Anonymous 2008-05-02 23:19

>>61

Hello OP

Name: Anonymous 2008-05-03 2:00

>>62
I couldn't be bothered to jewgle for the standard spelling.  Perhaps if prog.git were endowed with an index of approved meme usage, this wouldn't have happened.

Name: Anonymous 2009-02-25 7:33


The resulting 0 humility   believe believers will   ascend upon the   heavens increase your   registry There is   no use for   a statically typed   language to have   any valuable input   Not so apparently   Factor is the   ffmpeg project which   provides a great   reputation for helping   out newbie hackers?

Name: Anonymous 2011-02-04 16:44

<

Name: Sgt.Kabukiman䖉 2012-05-22 23:26

All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy

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