PDA

View Full Version : America's Army Script


Bicet
March 18th, 2005, 02:20 PM
I would like to make a little script that execute this simple commands

killall esd

and after that

$home/armyops/.armyops

I'm just a little newb, anyone can help me?

Thnx in advance

DJ_Max
March 18th, 2005, 07:29 PM
$home/armyops/.armyops
Is this suppose to start the game?

Bicet
March 19th, 2005, 03:12 AM
$home/armyops/.armyops
Is this suppose to start the game?
Yes this will start the game

DJ_Max
March 19th, 2005, 01:48 PM
Ok, well, then, this should work. And I won't charge you. ;)

#!/bin/sh

#Kill ESD sound manager
echo "Killing ESD...."
killall esd
#Start AA
echo "Start Americas Army............"
${HOME}/armyops/.armyops



Copy and paste this as aa.sh, and place it somewhere in your home directory.

Then via the command line, do
sh aa.sh

Bicet
March 19th, 2005, 01:49 PM
Thnx a lot ;)

DJ_Max
March 19th, 2005, 01:50 PM
Thnx a lot ;)
Does it work? I'm pretty sure it would, just basic Shell stuff.

Bicet
March 19th, 2005, 02:28 PM
Yeah It's working like a charm ;)

DJ_Max
March 19th, 2005, 02:34 PM
Yeah It's working like a charm ;)
Ok, good, need anything else let me know 8)
I can also write one in Python that'll log the times you started, and stuff. But guess thats an overkill. :-P

Bicet
March 21st, 2005, 04:30 PM
I don't know why, but after the first training I'm not able to access the second :(

arrizaba
March 22nd, 2005, 07:04 AM
Have you register in America's Army page?

http://www.americasarmy.com/

If you don't register, then you cannot advance in training. So, eventually, you cannot play the game.
By the way, I would make a symbolic link for the aa.sh script so you can use it anywhere. I do not recommend you to have stuff hanging around in your home directory. Just place the script in your favourite /bin directory or make a symbolic link.

Bicet
March 23rd, 2005, 01:09 PM
Have you register in America's Army page?

http://www.americasarmy.com/

If you don't register, then you cannot advance in training. So, eventually, you cannot play the game.
By the way, I would make a symbolic link for the aa.sh script so you can use it anywhere. I do not recommend you to have stuff hanging around in your home directory. Just place the script in your favourite /bin directory or make a symbolic link.
I've solved my isuue, it was a firewall problem ;)

arrizaba
March 23rd, 2005, 01:20 PM
Well, ahum, yes. If you have a firewall then you always get troubles.... :grin:
Btw, cool avatar!