Sponsored Content
Full Discussion: test for function name?
Top Forums UNIX for Advanced & Expert Users test for function name? Post 302193989 by Annihilannic on Monday 12th of May 2008 03:10:13 AM
Old 05-12-2008
whence functionname will return 0 or 1 depending on whether a function is defined or not. Of course it will also succeed if a matching programme is found in the PATH, in which case you could test for the presence of "is a function" in the output of whence -v functionname.
 

8 More Discussions You Might Find Interesting

1. Programming

C function to test string or integer

Hi everyone , Is there any predefined C function that tests whether an input is string or an integer? Thank's in advance :) (3 Replies)
Discussion started by: qqq
3 Replies

2. Shell Programming and Scripting

function to test if file is open

I need to write a function that will work in sh/ksh shell that will test to see if a file has already been opened for writting by another user has anyone written something like this? (3 Replies)
Discussion started by: johnsonbryce
3 Replies

3. Programming

C function to test existence of a login

Hi everybody, I need to check in C program whether a given login is known on the system. Is there any system function that could do this ? So far, all I could find is getpwnam(), which answers my problem by parsing the local password database. But won't work if a user is authenticated by... (2 Replies)
Discussion started by: xavier054
2 Replies

4. Shell Programming and Scripting

Test on string containing spacewhile test 1 -eq 1 do read a $a if test $a = quitC then break fi d

This is the code: while test 1 -eq 1 do read a $a if test $a = stop then break fi done I read a command on every loop an execute it. I check if the string equals the word stop to end the loop,but it say that I gave too many arguments to test. For example echo hello. Now the... (1 Reply)
Discussion started by: Max89
1 Replies

5. Shell Programming and Scripting

How to check weather a string is like test* or test* ot *test* in if condition

How to check weather a string is like test* or test* ot *test* in if condition (5 Replies)
Discussion started by: johnjerome
5 Replies

6. Shell Programming and Scripting

explanation of test function

I have found a code some where, which looks like if (test $value) then <do something> fi I am not understanding what is test doing here. I have seen test with !,-eq, -e etc. But, the above appears to be a new one to me. Can anyone please expalin me. (4 Replies)
Discussion started by: mady135
4 Replies

7. Shell Programming and Scripting

Test function not working

i am writing the following snippet and cannot figure out why the variable measType remains 0. it should be 1 I also tried "\#analog" and '\#analog' in the test statement and it still doesn't work. What is going on? bash$ measType=0 bash$ read line < 2iconfig.ini bash$ echo $line #analog... (4 Replies)
Discussion started by: oahmad
4 Replies

8. Shell Programming and Scripting

Wrong test interpretation for simple function.

Hello everyone, I have written simple script below to check if ip is added to interface #!/usr/local/bin/bash IFCONFIG="/sbin/ifconfig" SERVICE="/usr/sbin/service" IP="79.137.X.X" GREP=$(${IFCONFIG} | grep ${IP}) ip_quantity_check () { echo ${GREP} | wc -l } if ];... (2 Replies)
Discussion started by: bryn1u
2 Replies
EVOLVOTRON(1)							    Evolvotron							     EVOLVOTRON(1)

NAME
evolvotron - Creates generative art by an interactive evolutionary process. SYNOPSIS
evolvotron [-a] [-D] [-E] [-f <frames> ] [-F] [-g <cols> <rows> ] [-j] [-linz] [-m <multisample> ] [-M] [-n niceness ] [-N enlargement niceness ] [-r <framerate> ] [-spheremap] [-t <threads> ] [-v] [-x <functionname> | -X <functionname> ] [ <QtOptions> ] DESCRIPTION
evolvotron is interactive "generative art" software to evolve images/textures/patterns through an iterative process of random mutation and user-selection driven evolution. Basically it displays a grid of random images; you click on one you like and the rest of the grid is refilled with variants of the one you picked. This man page describes only the command line options. A more complete manual fully describing usage via the application's GUI is accessi- ble from the application's "Help" menu once it is running. GENERAL OPTIONS
-a Enable autocooling by default. -E Use a separate thread pool for computing enlargements. Using this option ensures computation of enlargements continue to make some progress even while the main grid is being actively worked on. However, this will be at the expense of main grid rendering perfor- mance. Without this option, enlargements' final high-resolution renderings are invariably lower priority than computation for images in the main grid. See also the -N option to control the priority of threads in this pool. -F Start in "fullscreen" mode (window manager permitting). [Press "Esc" key to revert to normal windowed mode]. -g <cols> <rows> Number of image display cells (defaults to 6 by 5). -j Enable sample jittering. -M Start with menu and status bars supressed. [Press "Esc" key to display them]. -m <multisample> Enables antialiased rendering. Valid values are 1,2,3,4. This specifies the size of the sub-pixel sampling grid, so 1 provides the default one-sample-per-pixel behaviour, while 4 provides 16 samples per pixel on a 4x4 grid. -n <niceness> Niceness of compute threads relative to the main application thread (defaults to 4). -N <enlargement niceness> Niceness relative to the main application thread of compute threads dealing with enlargements (defaults to 4 more than grid niceness). Only effective in conjunction with -E option. -t <threads> Number of compute threads (defaults to number of CPUs) <QtOptions> The Qt GUI system recognizes an number of additional options (for example, standard X11 things like -geometry <width>x<height>). ANIMATION OPTIONS
-f <frames> Number of frames to animate (defaults to 1 i.e no animaton) -linz Vary z linearly with time rather than sinusoidally. -r <framerate> Specify rate at which animations are displayed (as an integer number of frames per second). Defaults to 8. POWER-USER / DEBUG OPTIONS -D Debug mode. Currently simply sets function weightings so virtually all function nodes are FunctionNoiseOneChannel. This is really only useful to developers in conjunction with the -x/-X options. -spheremap Create spheremaps instead of planar textures. NB The middle-mouse adjustments will not behave as expected in this mode. -v Verbose mode. Probably most useful for getting a list of supported function names for use with the -x/-X options. -x <functionname> Force a specific function type to be used at the top level of all new image function trees (wrapped by random colour and spatial transforms). This can also be controlled from the "Favourite" dialog. -X <functionname> Similar to -x but with no wrapper functions. EXAMPLES
evolvotron -x FunctionSpiralLinear evolvotron -X FunctionKaleidoscope AUTHOR
evolvotron was written by Tim Day (www.timday.com) and is released under the conditions of the GNU General Public License. For further details see the application's "About" dialog (accessible from the "Help" menu), or the file LICENSE supplied with the source code. SEE ALSO
evolvotron_mutate(1), evolvotron_render(1) www.timday.com 24 Feb 2004 EVOLVOTRON(1)
All times are GMT -4. The time now is 03:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy