Sponsored Content
Operating Systems AIX Read input data within a specified period of time Post 302480089 by pludi on Tuesday 14th of December 2010 02:53:56 AM
Old 12-14-2010
If you don't hit enter, how is read supposed to know that all input has been read?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Run job for a period of time

I have a job that runs for an unspecified amount of time. I want to run this as a cron job for a specified amount of time, say 2 hours. Once the time is up, the program should be killed in the middle of execution. How can I do this? Thanks. (5 Replies)
Discussion started by: cooldude
5 Replies

2. Shell Programming and Scripting

read/writte/input data in file.

Hi, how can i do to show when i do with scrip list entris, or list specific entry, it show 2 lines when i specify the entry to search...¿? i paste the script: # Global variables film=/opt/etc/film/film.txt export film confirm() { echo -en "$@" read ans ans=`echo $ans | tr... (0 Replies)
Discussion started by: dorek
0 Replies

3. Shell Programming and Scripting

Calculate Time Period in Scripting

Hi all, now i am writting one bash script. in that my requirement is i need to create one directory and that the directory details to be stored in one file Ex. date/time and all in one file. after that i need to delete the folder automatically exactly after 3months. between these time... (5 Replies)
Discussion started by: anishkumarv
5 Replies

4. UNIX for Dummies Questions & Answers

Start Time and period of a PID

Hi, Below is my OS details. uname -an SunOS mymachine 5.10 Generic_144488-07 sun4v sparc SUNW,SPARC-Enterprise-T5220 I need to know when was my Apache server last started. Whats is the best and most reliable way to find out not just for Apache but for any PID per say? I am... (16 Replies)
Discussion started by: mohtashims
16 Replies

5. Shell Programming and Scripting

Help with Bash piped while-read and a read user input at the same time

Hi I am new to writing script and want to use a Bash Piped while-read and read from user input. if something happens on server.log then do while loop or if something happend on user input then do while loop. Pseudocode something like: tail -n 3 -f server.log | while read serverline || read... (8 Replies)
Discussion started by: MyMorris
8 Replies

6. HP-UX

memory consumption over a time period

Hi, Can some one please tell me how do I generate a report of the Memory Consumption over a time period: HP-UX B.11.31 U ia64 0440531406 unlimited-user license I normally use glance to monitor memory in run time. Note: I do not have root privileges. Thanks Danish ... (5 Replies)
Discussion started by: danish0909
5 Replies

7. Shell Programming and Scripting

Read user input, Encrypt the data and write to file

Hi, can some one help me how to encrypt and decrypt a file. AIM: reade user input, encrypt it and save it to file. while decryption read the encrypted file decrypt it and save the output in some variable. Example: consider we have Credentials.txt file with content username: password... (5 Replies)
Discussion started by: saichand1985
5 Replies

8. Shell Programming and Scripting

Get connection count over a period of time

I used this script to get the connection to a domain in two specific minutes. I need to extend to give result over a range of minutes. The below gives total number of connections in the minutes 00:40 and 01:13 on 22nd March. egrep "22/Mar/2013:00:40|22/Mar/2013:01:13"... (1 Reply)
Discussion started by: anil510
1 Replies

9. Shell Programming and Scripting

To get the Files between Time Period

All, How to get the list of files through a unix command which exists / created / updated between 8 PM to 11:59 PM from a particular location. Regards Oracle User (3 Replies)
Discussion started by: Oracle_User
3 Replies

10. Shell Programming and Scripting

How to get the shell script to read the .txt file as an input/data?

i have written my shell script in notepad however i am struggling to pass the data file to be read to the script the data file is of .txt format. My target is to run the shell script from the terminal and pass 3 arguments e.g. polg@DESKTOP-BVPDC5C:~/CS1420/coursework$ bash valsplit.sh input.txt... (11 Replies)
Discussion started by: Gurdza32
11 Replies
SnowballZ(6)							       Games							      SnowballZ(6)

NAME
snowballz - fun RTS game featuring snowball fights with penguins SYNOPSIS
snowballz DESCRIPTION
Take command of your army of penguins as you blaze your path to victory! March through snow laden forests to conqueror new frontiers and grow your small army. Ambush enemy lines with blasts of freezing snowballs. But don't neglect your home, invaders are just over the next snow drift! Gather fish for your cold penguins to munch on as they warm up in your cozy igloo. It's a snowy world you don't want to miss! REQUIREMENTS
You will need to make sure that you have all of these items installed on your system. If you use linux most of these will be in your dis- tribution's repository. * Python 2.4 * pygame * PyOpenGL * Numeric * PIL CONTROLS
You can control snowballers (not workers) by selecting them (ether by clicking on them or dragging a select box around them) and right clicking to tell them to do something. Left click to select, right click to perform an action. If you right click somewhere, they will move and stay there until they get cold or you tell them to go somewhere else. Snowballers that don't have any orders (they are cleared when they get cold), will walk around their home igloo. Penguins get cold when hit by snowballs. To disband your units (make them go stray around their igloos) by pressing the **o** key. You can also make your penguins run somewhere without stopping to throw at enemies by middle clicking instead of right clicking. You can move the screen around by using the arrow keys or **aswd** keys. Hold down on space to bring up a nice big minimap. Zoom in and out with the page-up and page-down keys. Note that for now it might be a little slow when zoomed out! CHAT
To send a chat message, first press enter to bring up the chat box. Once up, simply type your message and press enter again. Your message will be sent to everyone! If you want to send to just one person, you can type:: >playername Hi playername! This is a privet message! playername being the name of the person you want to send a chat message to. There is tab completeion too! So you can type ">" then hit TAB to see all players that you can send a privet chat to. Two useful shortcuts you can use are the "," and "." keys. Press the period when you aren't in chatmode and it will bring up the chatbox to send a message to the last person that sent a privet chat to you. The "," works the same way except to the last person you sent a privet chat to. If you ever have a bunch of chats on your screen that you just want to get rid of, you can press the **c** key to clear them all. TAKEOVER
If you tell a snowballer to move to an enemy igloo (by right clicking on it), it will run without stopping until it gets into it. If you can hold the enemy igloo for 30 seconds, it, the region, and all penguins belonging to the igloo will become yours. Be carefull though, if an enemy snowballer enters the igloo you are taking over, your penguin will be shown the door with a cold snowball in his face. Penguins (on ether side) can not exit an igloo that is in the middle of a takeover. When an igloo is being taken over, the penguins belonging to that igloo will go bananas. The workers will just run around in a panic and the snowballers will rush to try to save it in time not listening to your orders. (actually, the workers don't do that yet, but they will!) On the bottom right corner of igloos there is a marker designating which player that igloo belongs to. When an igloo is in jeopardy (being taken over), that marker turns multicolored. WARMING AND REASSIGNING
When a penguin gets cold from being hit with too many snowballs, it will run madly back to it's home igloo (you won't be able to control it again until it's warm). Once back in it's igloo, it can take up to 40 seconds to get warmed up (depending on how cold it was when going in)! It also requires a fish before it will go back out if it's warmth was below a certain level (your workers will automatically gather fish). If you tell a snowballer to enter one of your igloos (again, by right clicking on it), it will enter it. Immediately after entering, the igloo you told it to go to becomes it's home igloo. If it is all the way warm, it will exit immediately. Otherwise it will stay for a snack and warm up. TERRAIN TYPES
In the game you will come across two different types of land; Ice and snow. Really the only difference between the two is that snowballers can only create snowballs on snow (not ice). Try to catch your enemy on the the ice with your snowballers standing on the snow. If you can, you'll cream 'em! TIPS
When one of your penguins enters their igloo and is only a little bit cold, they won't eat a fish but will still get warm. The colder the penguin, the longer they take to warm up! You can gain a strategic advantage in a snowball fight if your penguins are among some trees while your opponents aren't. Snowballs that hit trees have no effect on surrounding penguins. Normally, a snowball that lands next to a penguin brings it's warmth down just a little while a direct hit will bring it down a lot. If your penguins get close enough to their enemy, they are much more accurate! One mean strategy you can use against your opponent when they are between your army and their own igloo is to send one of your penguins into their igloo. This will make your penguin run without stop towards their igloo distracting the enemy. This will give your snowballers a chance to get a handle on the situation. If your snowballer does manage to get into their igloo, all of their snowballers will panic and race to it, and stop throwing their snowballs! CREDITS
The game has been developed by: * Joey Marshall <joey@arcticpaint.com> - lead programmer - designer - gfx * Matthew Marshall <matthew@matthewmarshall.org> - programming - networking This man page has been made by Miriam Ruiz <little_miry@yahoo.es>, based in the README file that comes along with the game. SEE ALSO
You can find more information at http://joey101.arcticpaint.com/snowballz/ June 2007 SnowballZ(6)
All times are GMT -4. The time now is 08:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy