Aces High Bulletin Board

General Forums => The O' Club => Topic started by: Wanker on May 29, 2003, 08:32:24 AM

Title: ps -ef | grep Aces High | /opt/HTC/AcesHigh/.aceshigh.sh
Post by: Wanker on May 29, 2003, 08:32:24 AM
:eek:
Title: ps -ef | grep Aces High | /opt/HTC/AcesHigh/.aceshigh.sh
Post by: Furball on May 29, 2003, 08:40:54 AM
i dont get it :confused:
Title: ps -ef | grep Aces High | /opt/HTC/AcesHigh/.aceshigh.sh
Post by: devious on May 29, 2003, 08:44:21 AM
Wrong.

ps -ef | grep -i "aces high" > /opt/HTC/AcesHigh/.aceshigh.sh ; chmod 700 /opt/HTC/AcesHigh/.aceshigh.sh

Why ? ps -ef wont return the commandline used. The file will have to be edited.

1st have ps output the full command line, and have perl filter it. Don`t recall the params right now, but something like

ps -ef?? | perl -pe "s/.* (\/.*$)/\1/" > /opt/HTC/AcesHigh/.aceshigh.sh ; chmod 700 /opt/HTC/AcesHigh/.aceshigh.sh

:P
Title: ps -ef | grep Aces High | /opt/HTC/AcesHigh/.aceshigh.sh
Post by: Swoop on May 29, 2003, 08:46:20 AM
EUNUCHS

(http://image1ex.villagephotos.com/extern/640697.jpg)
Title: ps -ef | grep Aces High | /opt/HTC/AcesHigh/.aceshigh.sh
Post by: Barney Fife on May 29, 2003, 08:52:05 AM
NERDS!!!!
Title: ps -ef | grep Aces High | /opt/HTC/AcesHigh/.aceshigh.sh
Post by: Syzygyone on May 29, 2003, 09:08:23 AM
Quote
Originally posted by devious
Wrong.

ps -ef | grep -i "aces high" > /opt/HTC/AcesHigh/.aceshigh.sh ; chmod 700 /opt/HTC/AcesHigh/.aceshigh.sh

Why ? ps -ef wont return the commandline used. The file will have to be edited.

1st have ps output the full command line, and have perl filter it. Don`t recall the params right now, but something like

ps -ef?? | perl -pe "s/.* (\/.*$)/\1/" > /opt/HTC/AcesHigh/.aceshigh.sh ; chmod 700 /opt/HTC/AcesHigh/.aceshigh.sh

:P


Is that the hack for unlimited 30mm ammo in any plane, or the invulnerability hack, or is it both?:D :D :D
Title: ps -ef | grep Aces High | /opt/HTC/AcesHigh/.aceshigh.sh
Post by: AKIron on May 29, 2003, 11:32:58 AM
so, does this mean you're running AH on unix/linux?
Title: ps -ef | grep Aces High | /opt/HTC/AcesHigh/.aceshigh.sh
Post by: udet on May 29, 2003, 11:34:50 AM
eeeek Unix.
Title: ps -ef | grep Aces High | /opt/HTC/AcesHigh/.aceshigh.sh
Post by: Wanker on May 29, 2003, 12:24:06 PM
Quote
Originally posted by AKIron
so, does this mean you're running AH on unix/linux?


No, it only means that I've been buried up to my eyeballs in Linux testing at work this week, and even when I have the time to think of AH, it's in Linux format.

Although I wish Ah would run on Linux, that would be cool. I'm really starting to prefer SuSE Linux over any other OS.
Title: ps -ef | grep Aces High | /opt/HTC/AcesHigh/.aceshigh.sh
Post by: Staga on May 29, 2003, 12:38:58 PM
IIRC there were someone running AH in Linux (w/Winex).


Yep, Conway.

http://www.inimage.com/AH/AH_on_Linux.html
Title: ps -ef | grep Aces High | /opt/HTC/AcesHigh/.aceshigh.sh
Post by: vorticon on May 29, 2003, 01:07:23 PM
could someone translate whatever he just said into window tard terms???
Title: ps -ef | grep Aces High | /opt/HTC/AcesHigh/.aceshigh.sh
Post by: Skuzzy on May 29, 2003, 01:13:31 PM
Close devious, but you forgot something (and it really depends on the OS you are using..

Quote
Originally posted by devious
Wrong.

ps -ef | grep -i "aces high" > /opt/HTC/AcesHigh/.aceshigh.sh ; chmod 700 /opt/HTC/AcesHigh/.aceshigh.sh


ps -ef | grep -i "aces high" | grep -v grep > /opt/HTC/AcesHigh/.aceshigh.sh ; chmod 700 /opt/HTC/AcesHigh/.aceshigh.sh

You need to get rid of the grep from the ps output before piping to the shell script.

But I would need a bit more data:

rm -f /opt/HTC/AcesHigh/.aceshigh.sh
for i in `ps -ef | grep -i "aces high" | grep -v grep`
do
         echo "`date`:$i" >> /opt/HTC/AcesHigh/.aceshigh.sh
done
chmod 700 /opt/HTC/AcesHigh/.aceshigh.sh
Title: ps -ef | grep Aces High | /opt/HTC/AcesHigh/.aceshigh.sh
Post by: rpm on May 29, 2003, 01:53:31 PM
My head hurts
Title: ps -ef | grep Aces High | /opt/HTC/AcesHigh/.aceshigh.sh
Post by: Hooligan on May 29, 2003, 03:51:42 PM
Unix is really cool.  One of the nicest things about it is that the Operating System does not hold your hand.  Unix considers the user God and if you tell it to do something, it does it without asking "are you sure?" or whining etc...  In fact if you type in a random sequence of characters (see above), Unix will typically figure out what you meant and do it.

Hooligan
Title: ps -ef | grep Aces High | /opt/HTC/AcesHigh/.aceshigh.sh
Post by: Skuzzy on May 29, 2003, 03:58:56 PM
LOL Hooligan!  That was great!
Title: ps -ef | grep Aces High | /opt/HTC/AcesHigh/.aceshigh.sh
Post by: bigUC on May 29, 2003, 04:20:40 PM
Quote
Originally posted by Hooligan
Unix is really cool.  One of the nicest things about it is that the Operating System does not hold your hand.  Unix considers the user God and if you tell it to do something, it does it without asking "are you sure?" or whining etc...  In fact if you type in a random sequence of characters (see above), Unix will typically figure out what you meant and do it.

Hooligan


Brilliant.  I might add that Unix, unlike other OS's, will have to emulate another OS (or in  best case closely simulate a program from another OS) in order for the user to actually produce something.  However there is no better OS for moving, browsing, automating, altering, deleting or misplacing the actual data that the user has produced. :)
Title: ps -ef | grep Aces High | /opt/HTC/AcesHigh/.aceshigh.sh
Post by: senna on May 29, 2003, 06:25:46 PM
ps -ef | grep "AcesHigh" > c:/Program
ps: not found
[C:/] ver
Microsoft Windows 98 [Dos 5.9]
Title: ps -ef | grep Aces High | /opt/HTC/AcesHigh/.aceshigh.sh
Post by: Sancho on May 29, 2003, 10:05:16 PM
Quote
Originally posted by Skuzzy
You need to get rid of the grep from the ps output before piping to the shell script.
 [/B]


ps -ef | grep -i "[a]ces high"

no need for a second grep -v grep.