I am running this script, and i keep getting the error 'end of file' unexpected. I know that usually means parenthesis or whatever is out of place but i cant find anything!! I am new to scripting and i put some "print" staements in and it is not getting past the first IF statment i dont think. Here is the script. Thanks in advance
#
Last edited by Franklin52; 10-11-2008 at 01:10 PM..
Reason: adding code tags
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)
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)
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)
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)
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)
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)
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)
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)
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
LEARN ABOUT DEBIAN
tumiki-fighters
Tumiki Fighters(6) Tumiki Fighters(6)NAME
tumiki-fighters - sticky 2D shooter
DESCRIPTION OPTIONS
These options are available:
-brightness n
Set the brightness of the screen.(n = 0 - 100, default = 100)
-res x y
Set the screen resolution to (x, y).
-nosound
Stop the sound.
-window
Launch the game in a window.
-fullscreen
Launch the game in fullscreen.
-reverse
Reverse the shot key and the slow key.
USAGE
How to play:
Movement
Arrow / Num / [WASD] / Joystick
Shot [Z][L-Ctrl][.] / Trigger 1, 4, 5, 8
Slow/Pull in
[X][L-Alt][L-Shift][/] / Trigger 2, 3, 6, 7
Pause [P]
At the title screen, push a shot key to start the game.
Control your ship and destroy enemies. You can catch the enemy's broken piece. Pieces are stuck to your ship and counterattack to ene-
mies. You can earn the bonus score by keeping many pieces stuck. Stuck pieces are destroyed when they touch a enemy's bullet.
While holding a slow key, the ship becomes slow and the ship direction is fixed. Stuck pieces are pulled in and you can prevent a crash of
them, but the bonus score reduces to one fifth. Enemy's pieces are not stuck while holding this key.
If you stick many pieces, enemies become more offensive and tend to fire more bullets.
The ship is destroyed when it is hit by a bullet. The body of the enemy has no collision damage.
The ship extends at 200,000 and every 500,000 points.
SEE ALSO
You can find more about the game on its homepage: http://www.asahi-net.or.jp/~cs8k-cyu/windows/tf_e.html
AUTHOR
This game has been written by Kenta Cho <cs8k-cyu@asahi-net.or.jp>
Tumiki Fighters(6)