04-18-2002
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I need some advise.
I have an application server running several applications. When I try and start a particular application when the others are running I receive the following. This is appearing in the core file that is created.
... (1 Reply)
Discussion started by: dbrundrett
1 Replies
2. Shell Programming and Scripting
Hey
First of all: I'm on a Mac. I'm quite new to this, so forgive me if i sound like a newb :-)
I wish to install the Deluge BitTorrent client. First of all I installed Macports and made it run smooth. But then I ran into a problem when I should install Deluge. I can post the log, and maybe... (4 Replies)
Discussion started by: Sixmax
4 Replies
3. UNIX for Dummies Questions & Answers
Hey all..
I have a problem with the BitTorrent client called Deluge. (Deluge BitTorrent Client). Followed the guide on their homepage, but can't get it to work.
First of all I have installed Xcode Tools 3.0 and MacPorts. I did the "sudo port install deluge" command, and all packages seemed to... (1 Reply)
Discussion started by: Sixmax
1 Replies
4. UNIX for Dummies Questions & Answers
Hi,
i want to write a script that executes a program (exec?) .
this program then requires a filename as input.
how do i give it this input in the script so the program will be complete run and close by the script.
e.g.
exec prog.exe
program then asks for filename
"enter filename:"... (1 Reply)
Discussion started by: tuathan
1 Replies
5. Programming
Hello,
we are a group of students (mechanical engineering) who are trying to port UNIX-software to a PC Linux system during a study project. The first goals were achieved: compiling the Fortran code and creating object files. However, we encounter errors during the linking process.
This is... (0 Replies)
Discussion started by: Dynamo
0 Replies
6. Shell Programming and Scripting
My problem is that i want to calculate the day of the week, i want to change result given as a number for the day.
I mean, the program now do that if the day is Monday is represented by 0, Tuesday by 1.. but i want the word "Monday" as a result. I thought in a bucle if but there is always a... (3 Replies)
Discussion started by: mik4us
3 Replies
7. Programming
I use Ubuntu 10.4, and I installed GNUStep, Gorm (a gui builder) and ProjectCenter (the GNU alternative to Xcode) because I want to develop Objective-C apps. I opened the ProjectCenter and I created an application that displays only an empty window. I sourced the GNUstep.sh and I compiled the app. ... (0 Replies)
Discussion started by: mghis
0 Replies
8. Programming
I wrote a simple program that generates a random word 10,000,000 times.
I wrote it in python, then in C++ and compared the two completion times. The python script was faster! Is that normal? Why would the python script be faster? I was under the impression that C++ was faster. What are some of... (2 Replies)
Discussion started by: cbreiny
2 Replies
9. Homework & Coursework Questions
Long story short: I'm working inside of a Unix SSH under a bash shell. I have to code a C program that generates a random number. Then I have to call the compiled C program with a Perl program to run the C program 20 times and put all the generated random #s into a text file, then print that text... (1 Reply)
Discussion started by: jdkirby
1 Replies
10. Shell Programming and Scripting
I created a program, so a kid can practice there math on it. It dispenses varies math problems and the kid must input an answer. I also want it to grade the work they have done, but I can't find the best place for it to print out the grade.
I have:
if ( $response =~ m/^/ ) {
$user_wants_to_quit... (1 Reply)
Discussion started by: germany1517
1 Replies
LEARN ABOUT BSD
arithmetic
ARITHMETIC(6) Games Manual ARITHMETIC(6)
NAME
arithmetic - provide drill in number facts
SYNOPSIS
/usr/games/arithmetic [ +-x/ ] [ range ]
DESCRIPTION
Arithmetic types out simple arithmetic problems, and waits for an answer to be typed in. If the answer is correct, it types back "Right!",
and a new problem. If the answer is wrong, it replies "What?", and waits for another answer. After every twenty problems, it publishes
statistics on correctness and the time required to answer.
To quit the program, type an interrupt (delete).
The first optional argument determines the kind of problem to be generated; +-x/ respectively cause addition, subtraction, multiplication,
and division problems to be generated. One or more characters can be given; if more than one is given, the different types of problems
will be mixed in random order; default is +-.
Range is a decimal number; all addends, subtrahends, differences, multiplicands, divisors, and quotients will be less than or equal to the
value of range. Default range is 10.
At the start, all numbers less than or equal to range are equally likely to appear. If the respondent makes a mistake, the numbers in the
problem which was missed become more likely to reappear.
As a matter of educational philosophy, the program will not give correct answers, since the learner should, in principle, be able to calcu-
late them. Thus the program is intended to provide drill for someone just past the first learning stage, not to teach number facts de
novo. For almost all users, the relevant statistic should be time per problem, not percent correct.
7th Edition May 6, 1986 ARITHMETIC(6)