I have a trouble in my script when i use EOF inside block if.
If i use EOF whitout block if I don´t have problem.
Guys any ideas?
Sorry for my terrible English.
#!/bin/sh
set -xv
HOST='ftp.fiction.com.br'
USER='fictionuser'
PASS='fictionpass'
FILE='ftpteste.txt'
busca=`find... (4 Replies)
Hi everyone,
I am trying to search for a string in a file that is partly made up of a variable. Here's the code:
echo "parentCategory = $parentCategory"
echo "parentCategoryFormatted = $parentCategoryFormatted"
numUrlsFoundInParentCategory=`grep -c "<Topic r:id=\"Top\/World\/Français\/"... (2 Replies)
Below is a test script I'm writing in the process of learning to write script. When I try to run it I get an unexpected end of file error on line 56. Thoughts?
SCRIPT:
#!/bin/bash
# system_page - A script to produce a system information HTML file
##### Constants
TITLE="My System... (1 Reply)
Hello
I use opensuse build service to build packages (oh surprise !)
I have integrate a command in a spec whose worked and now this exit with:
unexpected EOF while looking for matching `"'
Command:
if \.").mk ]; then
ln -s $(pwd)/mozilla/security/coreconf/Linux2.6.mk \
... (5 Replies)
I have a piece of Linux script. It tells me some syntax error. I couldn't find it. Please help me to identify them. Thanks. The code looks like this:
export ORACLE_SID=MYDB
export SPW=`cat /opt/oracle/scripts/.sys_pw_$ORACLE_SID`
export check_arch=`sqlplus -s << EOF
/ as sysdba... (7 Replies)
Hi,
can someone kindly look into my copy script and figure out why am i getting a "unexpected EOF while looking for matching `"' error message
#!/bin/ksh -x
cd /home/goldenga/test/flag37
if ; then
rm copied.ok
cd /home/goldenga/test
Upper=`ls -t|grep 'qw*'|cut -d "w" -f 2|head... (4 Replies)
Hi everyone, I'm really new in shell scripting and having trouble resolving this error.
Can someone please tell me why I'm getting these errors?
Error Message:
./test.sh: line 50: unexpected EOF while looking for matching `''
./test.sh: line 53: syntax error: unexpected end of file
... (4 Replies)
Since cPanel does not support deleting emails older then X amount of days I am using the following on a Cron Job.
find -P /home/user/mail/domain/ -mindepth 2 -mtime '+366' -type f -printf '"%p"\n' | grep -v '/Important' | grep -v '/.Important' | xargs -I {} rm -r "{}"
Executing it via SSH... (4 Replies)
Hi, I am a new Unix Guru with very little experience but have the task of P2Ving an old HP Proliant ML370 G5 server to VMware ESX 4.1 or ESXi 5.5.
System seems to boots fine but when trying to remove HP software, configure TCP/IP or a driver, I am receiving:
--------
... (7 Replies)
Discussion started by: dj_Italian
7 Replies
LEARN ABOUT DEBIAN
mancala
MANCALA(6) Games Manual MANCALA(6)NAME
mancala - simple board game for human player and computer
SYNOPSIS
mancala level-top level-bottom number-of-stones
xmancala [-stones N]
mancala-text
DESCRIPTION
This manual page documents briefly the mancala and xmancala commands. This manual page was written for the Debian GNU/Linux distribution
because the original program does not have a manual page.
mancala runs the game in the console, while xmancala is a fancy X-interface. mancala-text is a shell script to run mancala in a console
from the Debian menu system.
When run as xmancala the program has no options, and should be self-explanatory. Built in buttons and sliders control the difficulty level
(default 4), and bring up the rules of the game.
The console version, mancala, has no access to the rules, and the difficulty level can only be set on the command line (see below). When
it is your turn to play, you enter the letter of the cell that you want to move the stones from, A to F (case insensitive). The rules are
contained in the file /usr/share/doc/mancala/RULES.
OPTIONS
When run as mancala, the program normally takes two arguments, level-top and level-bottom, one of which should be 0 to represent the human
player (you), and the other should be in the range 1 to 9, to represent the skill level of the computer player. The first argument repre-
sents the top player, who starts.
Alternatively, you can give a single argument or two non-zero arguments, to watch the computer playing itself, or two zero arguments, to
play against another human player on the same console.
For the console version, you can add a third argument to specify the number of stones per hole. For xmancala you can specify the number of
stones per hole using the -stones N argument.
On Debian systems, the shell script mancala-text is provided to facilitate running mancala in a console, from the Debian menu system. This
script will run mancala with a difficulty level of 4, and will pause when the game is finished, to enable the player to view the final
screen.
SEE ALSO
<http//en.wikipedia.org/wiki/Mancala>
AUTHOR
This manual page was written by Andrew Gray <ajpg@debian.org> for the Debian GNU/Linux system (but may be used by others).
13 March 2001 MANCALA(6)