11-13-2014
Thank you, Carona. I'll try that but would like to learn how to do it both ways. I'm learning UNIX through a book I bought and this was one of the exercises. Clearly - I'm not very good at it.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have an extraordinary problem with a csh script.....(feel free to berate the use of this but I'm modifying an existing bunch of them)
Anyway, I have a master csh script which in turn calls a second csh script. This second csh script is below. Within this second script are two compiled C++... (1 Reply)
Discussion started by: pollsizer
1 Replies
2. Shell Programming and Scripting
Hi everyone,
I have never wrote script in csh before, but I need to add only few lines to an existing one. I tried to use the bash standard syntax, and it did not work. So, I attempted to use csh syntax, and it is not working. Can someone help please:
switch ( $Return_Code )
case 0:... (3 Replies)
Discussion started by: nimo
3 Replies
3. Shell Programming and Scripting
Ok I asked something similar earlier with no response, so maybe I didn't word it correctly. I'm new at this, so thank you for your help.
Here's what I have right now.
----------------------------
> cat MySourceFile
#!/bin/csh
echo "Please Enter Value For My_Env_Var:"
set answer = $<
... (1 Reply)
Discussion started by: MMorrison
1 Replies
4. Shell Programming and Scripting
i have atcl script and i want to source a csh script to reflect changes done by script ........
Please help....... (0 Replies)
Discussion started by: paragarora47
0 Replies
5. Homework & Coursework Questions
I'm having some trouble implementing a basic calculator using command line options. The script is supposed to take (multiple) arguments -a,-d,-m,-s for addition, multiplication, division, and subtraction. I'm pretty sure I know how to parse through the options with getopt(), but I have no idea... (17 Replies)
Discussion started by: zkapopou
17 Replies
6. Shell Programming and Scripting
Hey I am brand new to this forum and scripting.
I have several documents (1000+) all formated exactly the same. Each document contains 97 lines. I want to pull 3 lines from the documents to populate a file. These 3 lines are line number 9, 24, and 58.
Ok my questions: Instead of using... (3 Replies)
Discussion started by: david6789
3 Replies
7. UNIX for Dummies Questions & Answers
Hey all,
I've only just started using UNIX coding on my Masters project, so am still learning!! The script I've been writing is literally just for me to get used to writing it and seeing what I can do with some data I've been given.
I'm trying to write a script, where the penultimate line... (2 Replies)
Discussion started by: southernlight
2 Replies
8. Shell Programming and Scripting
so just spit ballin here,
i was wondering if anybody knew how to make a chmod calculator script.
basically go to this website http://mistupid.com/internet/chmod.htm
i would like something like this that i can use in a terminal tho. so like i run the scrip and it ask for owner what... (1 Reply)
Discussion started by: hookitup
1 Replies
9. Shell Programming and Scripting
Hello, I'm in need with a little help for my script please this is the brief i need to complete which I haven't been able to do:
On option 7 stop the calculator
The calculator will keep running until option 7 is chosen. Any other option than 1-7 will generate an error message.
Pls any help... (1 Reply)
Discussion started by: linuxepicuser
1 Replies
10. Shell Programming and Scripting
Hello, I have to make a calculator in shell script. But I get this error. Can someone help me please?
c.sh: 3: c.sh: i: not found
That's my code.
==========================================================================
#Calculator
i = "yes"
while
do
echo What operation... (2 Replies)
Discussion started by: KJN
2 Replies
LEARN ABOUT DEBIAN
phalanx
PHALANX(6) Games Manual PHALANX(6)
NAME
Phalanx - Chess playing program
SYNOPSIS
phalanx [options] [<moves> <minutes> [<increment in seconds>]]
phalanx [options] [<seconds per move>]
phalanx bench
phalanx bcreate [options]
DESCRIPTION
This manual page documents briefly the phalanx program. This manual page was written for the Debian GNU/Linux distribution (but may be
used by others), because the original program does not have a manual page.
phalanx is a chess playing program. It is partially xboard compatible. Under xboard, it can play games, force & undo moves, and show
thinking. In this version, you cannot set positions with xboard.
It is also possible to run phalanx without xboard. Do phalanx -? to get a list of command line options. One important command of pha-
lanx's ASCII interface is help.
phalanx uses (traditional) 10x12 board implementation. There are three often used board implementations: "8x8" (GNU Chess), "bitboard"
(Crafty), and "10x12" (Nimzo, Phalanx). In short, "10x12" is easy to implement and the code is small (==fast on PC). Opening book is
small, simple, hand-written.
OPTIONS
-t <transposition table size in kilobytes>
-f <fixed search time in seconds>
-x <+/->
xboard mode on/off default: on
-p <+/->
permanent brain on/off default: off
-s <+/->
show thinking on/off default: off
-c <+/->
cpu time default: off
-o <+/->
polling input default: on
-b <+/->
opening book default: on
-r <resign value in centipawns>
default: 0 (no resigning)
-e <easy level 0...100>
default: 0 (best play)
-l <+/->
learning on/off default: on
-v print version and exit
-P <primary book directory>
-S <secondary book directory>
-L <learning file directory>
-g <log file name>
EXAMPLES
phalanx -c+ -s+ -o - -x- -f 60 -t4000
xboard -fcp "phalanx -l+ -r800"
SEE ALSO
/usr/share/doc/phalanx, xboard(6)
AUTHOR
Phalanx was written by Dusan Dobes <dobes@math.muni.cz>. This manual page was written by Stephen Stafford <bagpuss@debian.org> for the
Debian GNU/Linux project, but may be used by others. It was written with the assistance of help2man(1) and then edited slightly to clean
it up.
Phalanx XXII May 2001 PHALANX(6)