Author Topic: ps -ef | grep Aces High | /opt/HTC/AcesHigh/.aceshigh.sh  (Read 822 times)

Offline Wanker

  • Platinum Member
  • ******
  • Posts: 4030
ps -ef | grep Aces High | /opt/HTC/AcesHigh/.aceshigh.sh
« on: May 29, 2003, 08:32:24 AM »
:eek:

Offline Furball

  • Plutonium Member
  • *******
  • Posts: 15781
ps -ef | grep Aces High | /opt/HTC/AcesHigh/.aceshigh.sh
« Reply #1 on: May 29, 2003, 08:40:54 AM »
i dont get it :confused:
I am not ashamed to confess that I am ignorant of what I do not know.
-Cicero

-- The Blue Knights --

Offline devious

  • Nickel Member
  • ***
  • Posts: 703
      • http://www.jg301-wildesau.de
ps -ef | grep Aces High | /opt/HTC/AcesHigh/.aceshigh.sh
« Reply #2 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

Offline Swoop

  • Plutonium Member
  • *******
  • Posts: 9180
ps -ef | grep Aces High | /opt/HTC/AcesHigh/.aceshigh.sh
« Reply #3 on: May 29, 2003, 08:46:20 AM »
EUNUCHS


Offline Barney Fife

  • Copper Member
  • **
  • Posts: 341
ps -ef | grep Aces High | /opt/HTC/AcesHigh/.aceshigh.sh
« Reply #4 on: May 29, 2003, 08:52:05 AM »
NERDS!!!!

Offline Syzygyone

  • Silver Member
  • ****
  • Posts: 975
ps -ef | grep Aces High | /opt/HTC/AcesHigh/.aceshigh.sh
« Reply #5 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

Offline AKIron

  • Plutonium Member
  • *******
  • Posts: 13366
ps -ef | grep Aces High | /opt/HTC/AcesHigh/.aceshigh.sh
« Reply #6 on: May 29, 2003, 11:32:58 AM »
so, does this mean you're running AH on unix/linux?
Here we put salt on Margaritas, not sidewalks.

Offline udet

  • Parolee
  • Gold Member
  • *****
  • Posts: 2242
      • http://www.angelfire.com/nd/mihaipruna/dogfight.html
ps -ef | grep Aces High | /opt/HTC/AcesHigh/.aceshigh.sh
« Reply #7 on: May 29, 2003, 11:34:50 AM »
eeeek Unix.

Offline Wanker

  • Platinum Member
  • ******
  • Posts: 4030
ps -ef | grep Aces High | /opt/HTC/AcesHigh/.aceshigh.sh
« Reply #8 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.

Offline Staga

  • Parolee
  • Platinum Member
  • ******
  • Posts: 5334
      • http://www.nohomersclub.com/
ps -ef | grep Aces High | /opt/HTC/AcesHigh/.aceshigh.sh
« Reply #9 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

Offline vorticon

  • Platinum Member
  • ******
  • Posts: 7935
ps -ef | grep Aces High | /opt/HTC/AcesHigh/.aceshigh.sh
« Reply #10 on: May 29, 2003, 01:07:23 PM »
could someone translate whatever he just said into window tard terms???

Offline Skuzzy

  • Support Member
  • Administrator
  • *****
  • Posts: 31462
      • HiTech Creations Home Page
ps -ef | grep Aces High | /opt/HTC/AcesHigh/.aceshigh.sh
« Reply #11 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
Roy "Skuzzy" Neese
support@hitechcreations.com

Offline rpm

  • Plutonium Member
  • *******
  • Posts: 15661
ps -ef | grep Aces High | /opt/HTC/AcesHigh/.aceshigh.sh
« Reply #12 on: May 29, 2003, 01:53:31 PM »
My head hurts
My mind is a raging torrent, flooded with rivulets of thought cascading into a waterfall of creative alternatives.
Stay thirsty my friends.

Offline Hooligan

  • Silver Member
  • ****
  • Posts: 889
ps -ef | grep Aces High | /opt/HTC/AcesHigh/.aceshigh.sh
« Reply #13 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

Offline Skuzzy

  • Support Member
  • Administrator
  • *****
  • Posts: 31462
      • HiTech Creations Home Page
ps -ef | grep Aces High | /opt/HTC/AcesHigh/.aceshigh.sh
« Reply #14 on: May 29, 2003, 03:58:56 PM »
LOL Hooligan!  That was great!
Roy "Skuzzy" Neese
support@hitechcreations.com