ogamesim(6) Games Manual ogamesim(6)NAME
Console Ogame Simulator
SYNOPSYS
ogamesim [ -i <task.txt> ] [ -o <result.txt> ]
DESCRIPTION
Tasks for simulation are consist of text files.
Example of task concluding all possible units is adduced bellow.
OPTIONS -i <input file>: task file (STDIN unless defined);
-o <output file>: result file (STDOUT unless defined);
-s <iterations count>: 1 <= value <= N (no limits);
-t <max simulation time>: (seconds) 0 <= value <= N, 0=no limits;
-f <forks count>: 0 <= value <= 100.
RETURN VALUES
0: if success
EXAMPLES
Task concluding all possible units:
attacker
attack = 9
shield = 10
armory = 11
Small Cargo = 10
Large Cargo = 10
Light Fighter = 20
Heavy Fighter = 30
Cruiser = 40
Battleship = 50
Colony Ship = 60
Recycler = 70
Espionage Probe = 80
Bomber = 900
Destroyer = 110
Deathstar = 120
defender
attack = 11
shield = 12
armory = 13
Rocket Launcher = 100
Light Laser = 200
Heavy Laser = 300
Gauss Cannon = 400
Ion Cannon = 500
Plasma Turret = 600
Small Shield Dome = 1
Large Shield Dome = 1
Solar Satellite = 100
metal = 123456
crystal = 56789
deut = 987654
ogamesim Dec 4, 2006 ogamesim(6)
Check Out this Related Man Page
Task(3PERL) Perl Library Functions Task(3PERL)NAME
Task - Perl interface to Tasks
SYNOPSIS
use Sun::Solaris::Task qw(:ALL);
my $taskid = gettaskid();
DESCRIPTION
This module provides wrappers for the gettaskid(2) and settaskid(2) system calls.
Constants
TASK_NORMAL, TASK_FINAL.
Functions
settaskid($project, $flags)
The $project parameter must be a valid project ID and the $flags parameter must be TASK_NORMAL or TASK_FINAL. The parameters are passed
through directly to the underlying settaskid() system call. The new task ID is returned if the call succeeds. On failure -1 is
returned.
gettaskid()
This function returns the numeric task ID of the calling process, or undef if the underlying gettaskid() system call is unsuccessful.
Class methods
None.
Object methods
None.
Exports
By default nothing is exported from this module. The following tags can be used to selectively import constants and functions defined in
this module:
:SYSCALLS settaskid() and gettaskid()
:CONSTANTS TASK_NORMAL and TASK_FINAL
:ALL :SYSCALLS and :CONSTANTS
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWpl5u |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO gettaskid(2), settaskid(2), attributes(5)SunOS 5.11 1 Dec 2002 Task(3PERL)
hi i want to reach .txt file and their sizes are more than 100
foreach file ( `ls -l *.txt | awk '{print $5 }'` )
if ( $file > 100 ) then
echo $file
endif
end
this script gives numerical value of file sizes like
667
784
568 etc.
but i only want file name... (2 Replies)
Hi,
I have a large file(csv format) that I need to split into 2 files. The file looks something like
Original_file.txt
first name, family name, address
a, b, c,
d, e, f,
and so on for over 100,00 lines
I need to create two files from this one file. The condition is i need to ensure... (4 Replies)
Hi All
I have approximately 10 files that are at least 100+ MB in size. I am importing them into a DB to output them to the web. What i need to do first is clean the files up so i dont have un necessary rows in the DB. Below is what the file looks like:
Ignore the <TAB> annotations as that... (4 Replies)
Hi All,
i have a variable which has a value in it.
RETAILER='JEWL'
i have a text file. Name: file.txt
file.txt
________
WLG 150
JEWL 60
CVS 240
FLN 120
WND 120
I am trying to write a korn script.the script, based on the value in the RETAILER will do a look up against the... (5 Replies)
hi
the code i ve written is as follows:
command="egrep ',100,|,200,' | wc -l"
count =`cat trial.txt | $command`
echo "$count"
the contents of
trial.txt is :
000,100,200,300,
001,200,100,201,
002,200,100,400,
i need to get the count using the command stored in a variable and using... (2 Replies)
Hi folks,
I want Trailer to be added into the txt file the format is below.
flatfile-> abc.txt
count of the file is 500 records.
I want the trailer in this format: TRAILER|500 (pipe delimeter).
Please suggest the comands ASAP.
Rgds
Ann (5 Replies)
Hi Everyon,
I am stuck in a script.I have a file named file1.txt as given below:
It contains 2 columns-count and filename.
cat file1.txt
count filename
100 A_new.txt
1000 A_full.txt
1100 B_new.txt
2000 B_full.txt
1100 C_new.txt
2000 C_full.txt
...................
..................... (10 Replies)
Hey I have a data in the file named as outputFile.txt. The data is in the format
123456,12345678912345,400,09/09/09,INACTIVE.
I want this output without commas ie
12345612345678912345400090909INACTIVE.
Please tell me what to do and clear explain all the terms, as I am new to it. (6 Replies)
Hi
I have a file in which data is in this format
123456,112233445566,400,ABCDEF,790
123450,123456789798,300,QWERTY,987
.
.
.
I mean to say I want to read data until I encounter a comma.
So I want to read the file and read first 123456 and write it to file. Then read 112233....and so on.
... (5 Replies)
I have a file contails as below
I/P:
123456
123456
234567
987654
678905
678905
Like above i have 1000's of entries
I need output as below
O/P:
123456
678905
I'm using uniq -d filename it is showing results but it is missing few duplicate entries and i dont know why.Please... (9 Replies)
My input file gfile values is CTRY=GM&PROJTYPE=SP&PROJECTTYPE=Small+Project
If i am giving PROJECTTYPE then it must give Small Project
awk -F"&" '{for (i=1; i<=NF; i++) if ($i ~ "^"PAT) {sub ("^"PAT"=", "", $i); sed 's/'+'/""/' $i ; print $i }}' PAT=$1 ... (6 Replies)
hello, i am a newbie and i really need your help
i have an centos 6.5 and i wonder if i can create a list with random 4 letters :
gdjf
ornc
tyrn
jfdn
nofd
etc....
if it can be done , i will really apreciate your help ! THANKS !!!
---------- Post updated at 07:16 AM... (10 Replies)