Sponsored Content
Full Discussion: 'end of file' unexpected
Top Forums Shell Programming and Scripting 'end of file' unexpected Post 302245870 by otheus on Saturday 11th of October 2008 12:15:18 PM
Old 10-11-2008
And [ is actually a symlink (or alias) to "test". So you could also do :

Code:
if test "$choice" -eq 1

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

'end of file' unexpected

what do u mean by " 'end of file' unexpected "? i am running a script called "s1" which internally calls "s2" now s1 starts running & at a point (where it is suppose to call "s2") i get a message 'end of file' unexpected.... & my script(s) are not working.. any ideas on this? regards... (4 Replies)
Discussion started by: abhijeetkul
4 Replies

2. Shell Programming and Scripting

unexpected end of file

This is the script path=/oracle/ora10gdb/sample archive=/oracle/ora10gdb/archive cd $path for i in `ls`;do mv $i $archive Done Please tell me why it is givind this error (2 Replies)
Discussion started by: dineshr85
2 Replies

3. Shell Programming and Scripting

end of file unexpected

hi i have error like this' syntax error end of file unexecpeted.and give me the example of cut command as soon as possible: (1 Reply)
Discussion started by: naveeng.81
1 Replies

4. Shell Programming and Scripting

'end of file' unexpected

HI, I was converting a .bat file to .sh file for unix Code snippet #!/usr/bin/sh set -x if then goto RegularBuild; CURDIR="$1"; cd "$CURDIR"; :RegularBuild echo "Checking for existing fip_help.properties in def/properties directory..." if then rm -f fip_help.properties; ... (1 Reply)
Discussion started by: srisreeku
1 Replies

5. Shell Programming and Scripting

unexpected end of file error

hi, i am trying to connect to sqlplus in an 'if block' from the script. it is giving unexpected end of file error. and it works fine if it is out of 'if block'. if anybody have idea on this, can you please help me to solve the error ? piece of code is given below. if then... (11 Replies)
Discussion started by: vinayakatj56
11 Replies

6. Shell Programming and Scripting

Unexpected end of file, why?

I am getting a "line 47: syntax error: unexpected end of file", why? According to my estimate, line 47 is 2 lines after the last line of code here. Also, the $1 variable represents the current user logging in, and the script runs with root privileges (This is a Mac OS login hook script using... (5 Replies)
Discussion started by: glev2005
5 Replies

7. Shell Programming and Scripting

Unexpected end of file

Hi, On adding below code to my script shows the error on executing else script works fine. sqlplus $user_name/$password <<EOL truncate table order; commit; truncate table order_hist; commit; insert into order(ID,TRAN,CUST_NAME,OPT_VAL) select * from order_bkp; insert into... (5 Replies)
Discussion started by: milink
5 Replies

8. Shell Programming and Scripting

Unexpected end of file error

Hi , I am new to Unix and this is my first shell script . I am facing "unexpected end of file error" while executing my code . tried removing blank spaces Unable to trace out the error . PLease help !!! #!/bin/sh echo hello if ] echo hi then var=`cat liq_table_nm.txt` ... (6 Replies)
Discussion started by: sen180185
6 Replies

9. Shell Programming and Scripting

Unexpected End Of File Error

Hi guys, I am new to BASH scripting and I was wondering if anyone could have a look at this code and explain to me why I am getting an Unexpected End of File Error ? If you can that would be great / much appreciated! THANKS! #!/bin/bash USER="" PASS="" if ; then echo "You need to set... (1 Reply)
Discussion started by: spooke
1 Replies

10. Shell Programming and Scripting

unexpected end of file

I dont know where I missed the double quotes .:wall:pls review this code and help me out . m1: line 26: unexpected EOF while looking for matching `"' m1: line 34: syntax error: unexpected end of file echo "script is created by prabhu Kumar "; echo "changing the directory to wes... (2 Replies)
Discussion started by: ptappeta
2 Replies
QONK(6) 																   QONK(6)

NAME
qonk - Small build-and-conquer strategy game with very simple rules SYNOPSIS
qonk [number of planets] [number of AI players] DESCRIPTION
This manual page was written for the Debian(TM) distribution because the original program does not have a manual page. Most of the text is taken verbatim from the author's webpage. qonk is a small build-and-conquer strategy game with very simple rules. A complete game only lasts for a few minutes and can be a fun break away from work or whatever you're doing. The setting of the game is a solar system of planets. Your goal is to conquer all of the planets in the game by sending ships there. Planets that are under your control generate new ships. Simple AI players are playing against you. As you gain more experience throughout the game, more AI players have to be kicked out of bigger solar systems. The game is currently very much in beta. The game engine itself is fully functional. A lot of things have to be added to make this a mature game (like menus and stuff), but since the engine itself works, Qonk is already very playable. Although the game engine is prepared to run under different modes, the game always defaults to 1024x768 resolution, and goes into fullscreen modus to run qonk. (because of beta status) OPTIONS
In order to change between levels, the game had to exit and parameters for the game and its level had to be entered from the command line. A small modification have been introduced for making this automatically. Nevertheless, you can always start in any level you prefer. Qonk can be given two numeric parameters, the first denoting the number of planets in the solar system, the second gives the number of enemy AI players. Successive levels of the game are defined by two such parameters. number of planets Total number of planets in the solar system. number of AI players The number of enemy AI players you will compete with. HOW TO PLAY
You select ships and send them out to planets, to attack or fortify them. A ship that arrives at an enemy planet dies and kills an enemy ship, residing on that planet, along with it. If no enemy ships are based on the planet, you take over the planet. Planets under your control grow new ships for you to send around. You control white planets and white ships. Colored planets belong to the opponent players. Gray planets are not controled by a player and can easily be conquered, once its resident neutral ships are destroyed (about 2-4 of them on each neutral planet). There are two types of planets in the solar system. There are planets orbiting around the "sun" and moons orbiting around the planets. There are as many moons as planets in each solar system. Some planets may have more moons than others. A planet is expected to generate twice as many ships as a moon in the same amount of time. Some planets/moons build ships more quickly than others. Each ship also has a random speed. Select ships by dragging your left mouse button. A ship can only be selected for an action if it resides on a planet. Use the right mouse button to send selected ships to the nearest planet to the mouse pointer. If you want to select all of the available ships, press A. As you conquer more planets, more ships are built in parallel. Try to conquer as many planets as possible, so that many new ships are constructed and you can reign over the solar system. There are some extra keys that can be used: E While pressing E, the ships of enemy players are shown, so this is kind of a cheat button. P Pause and unpause the game. S Save a screenshot (screenshot.bmp) of the game. PLAYER RANKING
The rank of a player is not only based on the number of planets the player possesses, but also on the number of ships. A planet gives a player 2 points, a moon gives 0.999 points, and each ship adds another 1/3 of a point. A moon is thus worth just under 3 ships. Players with the highest amount of points rank highest. AUTHOR
Qonk was written by Anthony Liekens and Robert Schuster. This manual page was written by Martin Ferrari <martin.ferrari@gmail.com> for the Debian(TM) system, taking text from the game author's webpage: http://anthony.liekens.net/index.php/Computers/Qonk COPYRIGHT
Copyright (C) 2006, Anthony Liekens <anthony@liekens.net> Copyright (C) 2007, Robert Schuster <robertschuster@fsfe.org> This manpage Copyright (C) 2006 Martin Ferrari 2006-06-19 QONK(6)
All times are GMT -4. The time now is 06:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy