Sponsored Content
Full Discussion: Fibonacci series
Top Forums Shell Programming and Scripting Fibonacci series Post 302069128 by RTM on Wednesday 22nd of March 2006 07:19:58 PM
Old 03-22-2006
Maybe just a rabbit breeder.
 

10 More Discussions You Might Find Interesting

1. Programming

C with MQ Series

Hi, Any one please let me know, how to write in to MQ Series through C. I tried, but it was vein, am expecting material(URL) or code. Thanks, Naga:cool: (5 Replies)
Discussion started by: Nagapandi
5 Replies

2. Shell Programming and Scripting

problem in fibonacci series

hi, I'm a beginner to UNIX and got some problem in this fibonacci.Please help me out.Here is the code: fibo() { if then fibo=` expr {fibo ($1 - 2)} + {fibo ($1 - 1)}` | bc echo $fibo fi } echo "enter a number:" read x #echo "The fibonnacci series for value $x is:" fibo $x ... (4 Replies)
Discussion started by: janani_kalyan
4 Replies

3. Shell Programming and Scripting

Shell script to generate Fibonacci series using recursion

I am facing problem with Shell script to generate Fibonacci series using recursion i.e. recursive function. Here is my script: #!/bin/sh fibo() { no=$1 if ; then return 0 elif ; then return 1 else a1=`expr $no - 1` fibo $a1 ... (10 Replies)
Discussion started by: Tapas Bose
10 Replies

4. Shell Programming and Scripting

Shell script to find the sum of first n Fibonacci numbers

pls give me the solution for this i need it for my exam pls pls pls Shell script to find the sum of first n Fibonacci numbers (1 Reply)
Discussion started by: Kshitija
1 Replies

5. Homework & Coursework Questions

Help with shell script to find sum of first n numbers of Fibonacci series

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Shell script to find sum of first n numbers of Fibonacci series 2. Relevant commands, code, scripts,... (0 Replies)
Discussion started by: Kshitija
0 Replies

6. UNIX for Dummies Questions & Answers

Why does fibonacci sequence script stop making sense at 92nd iteration?

So, Just for practice, I wrote a simple fibonacci sequence script in bash. (03:08:02\$ cat fib #!/usr/bin/bash ret () { echo -ne "\n" sleep .5 } a=1 b=2 echo -n $a #1 A ret echo -n $b #2 B ret (8 Replies)
Discussion started by: DeCoTwc
8 Replies

7. Programming

Fibonacci (assembly)

When i run this with gcc filename.s -o filename. It is giving fatal error: Unknown opcode at define registers. Anyhelp will be appreciated .section ".data" prompt: .asciz "\nThis program prints the Fibonacci sequence" prompt2: .asciz "\nEnter a limit on the largest number to be displayed:"... (2 Replies)
Discussion started by: Learnerabc
2 Replies

8. Solaris

M Series

Hi All, Do anyone know if I upgrade cpu module and memory module for one of the domain inside Sun M5000. After the upgrade, will the hostid for the domain change or it will remain as long we don't change the system board? Currently will try to upgrade one of the Sun M5000 with 4 domains... (2 Replies)
Discussion started by: mailbox80
2 Replies

9. Homework & Coursework Questions

program to find and print a Fibonacci sequence of numbers. --Errors

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: I am trying to convert a C language program over to Sparc Assembley and I am getting Undefined first referenced... (4 Replies)
Discussion started by: kenjiro310
4 Replies

10. Shell Programming and Scripting

Fibonacci series -going into infinite loop

Hello, I am a beginner to shell programming. Coded the following for Fibonacci series. #!/bin/bash fib() { i=0 j=1 arr=0 arr=1 echo "enter the limit:" read n while do fo= expr $j - 1 f1=$j f2= expr $j + 1 arr= expr ${arr} + ${arr} echo ${arr} (3 Replies)
Discussion started by: Rookie222
3 Replies
sane-net(5)							File Formats Manual						       sane-net(5)

NAME
sane-net - SANE network backend DESCRIPTION
The sane-net library implements a SANE (Scanner Access Now Easy) backend that provides access to image acquisition devices through a net- work connection. This makes it possible to control devices attached to a remote host and also provides a means to grant users access to protected resources. DEVICE NAMES
This backend expects device names of the form: host:device Where host is the name of the (remote-) host and device is the name of the device on this host that should be addressed. If the device name does not contain a colon (:), then the entire string is treated as the device string for the default host. The default host is the host listed last in the configuration file (see below). CONFIGURATION
The contents of the net.conf. file is a list of host names that should be contacted for scan requests. Empty lines and lines starting with a hash mark (#) are ignored. A sample configuration file is shown below: scan-server.somedomain.firm # this is a comment localhost The above list of host names can be extended at run-time using environment variable SANE_NET_HOSTS. This environment variable is a colon- separated list of hostnames that should be contacted in addition to the hosts mentioned in the configuration file. For example, a user could set the environment variable to the string: new.scanner.com:scanner.univ.edu To request that hosts new.scanner.com and scanner.univ.edu are contacted in addition to the hosts listed above. For this backend to function properly, it is also necessary to define the sane service in /etc/services. At present, the sane service should be defined using a line of the following form: sane 6566/tcp # SANE network scanner daemon FILES
/etc/sane.d/net.conf The backend configuration file (see also description of SANE_CONFIG_DIR below). /usr/lib/sane/libsane-net.a The static library implementing this backend. /usr/lib/sane/libsane-net.so The shared library implementing this backend (present on systems that support dynamic loading). ENVIRONMENT
SANE_CONFIG_DIR This environment variable specifies the list of directories that may contain the configuration file. Under UNIX, the directories are separated by a colon (`:'), under OS/2, they are separated by a semi-colon (`;'). If this variable is not set, the configura- tion file is searched in two default directories: first, the current working directory (".") and then in /etc/sane.d. If the value of the environment variable ends with the directory separator character, then the default directories are searched after the explic- itly specified directories. For example, setting SANE_CONFIG_DIR to "/tmp/config:" would result in directories "tmp/config", ".", and "/etc/sane.d" being searched (in this order). SANE_NET_HOSTS A colon-separated list of host names to be contacted by this backend. SANE_DEBUG_NET If the library was compiled with debug support enabled, this environment variable controls the debug level for this backend. E.g., a value of 128 requests all debug output to be printed. Smaller levels reduce verbosity. BUGS
If saned has timed out, the net backend may loop with authorization requests. SEE ALSO
sane(7), saned(1), sane-dll(5), scanimage(1) http://www.penguin-breeder.org/?page=sane-net AUTHOR
David Mosberger and Andreas Beck 8 Oct 2002 sane-net(5)
All times are GMT -4. The time now is 04:09 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy