Sponsored Content
Top Forums UNIX for Dummies Questions & Answers [ASK]execute shell with function in solaris Post 302617339 by Scrutinizer on Monday 2nd of April 2012 01:07:16 PM
Old 04-02-2012
Alternatively, leave out the function keyword. It is not required by bash and it is not part of POSIX:
Code:
tester(){
  echo "testing only"
}

tester

It is best to not use "test" as this is a shell built-in..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How can I execute own ksh function in find -exec

Hi, I wrote a smiple ksh function send_notification() { ... } and want to execute it on each file, matched by the find command. I tried: find / -name "*.err" -mtime -8 -exec send_notification {} \; but it doesn't work. What should I do? I work in ksh on Hp-Ux. Regards, Pit (11 Replies)
Discussion started by: piooooter
11 Replies

2. Programming

How to periodically execute a function in C ??

Hi, I am looking for a C library feature, to which I can say execute a function every 10 seconds. for Eg #include <timer_lib.h> fun1(){ printf("I am still cool "); } int main(){ run(10,&fun1); // Should register & execute the function fun1 every 10 seconds return 0x0; }... (24 Replies)
Discussion started by: RipClaw
24 Replies

3. Shell Programming and Scripting

How to execute local function in awk

Hi All, Can you please tell me how to execute local function written in a shell script with awk. i tried with system command but its giving an error. (1 Reply)
Discussion started by: krishna_gnv
1 Replies

4. UNIX for Advanced & Expert Users

Unable to execute a function using trap

I have a script A which calls script B. I wrote a function in script A to be executed when Kill command is issued for script A and I invoke that function using the trap command.The function identifies all child process running under script A (in this case script B) and kills the child process and... (3 Replies)
Discussion started by: smohandass
3 Replies

5. Shell Programming and Scripting

understand the function to execute

Gurus, Can you please tell me why this script is executing but i am getting no result...also can you tell me what is this gettime() doing? in a script i wrote this hour.SH -------------------------- gettime() { date '+%H' | { read hour TIME=${hour} } } : ----------------------... (2 Replies)
Discussion started by: RubinPat
2 Replies

6. Shell Programming and Scripting

SHELL SCRIPT Function Calling Another Function Please Help...

This is my function which is creating three variables based on counter & writing these variable to database by calling another function writeRecord but only one record is getting wrote in DB.... Please advise ASAP...:confused: function InsertFtg { FTGSTR="" echo "Saurabh is GREAT $#" let... (2 Replies)
Discussion started by: omkar.sonawane
2 Replies

7. Shell Programming and Scripting

Execute a function in background and then suspend it

Here is some back ground on the script. The script is to poll an arbitrary number of DB's. To do this I am creating a function that takes the file_path to the DB and the min poll interval as arguments. The function will be called for each DB and then ran in the background. The function I was... (6 Replies)
Discussion started by: ryandavison
6 Replies

8. Shell Programming and Scripting

Want to use function and execute the below query in script.

#!/bin/bash function getDeliveredDispatches(firstDateTime, lastDateTime, limit) { var cursor = db.dispatches.find( {$and: }} ]}, {"deliveryGroupId" : 1, "batchId": 1, "statusHistory.code" : 1} ); var wrongDispatchesIds = ; print("Number of dispatches selected based on filter = " +... (2 Replies)
Discussion started by: neel2462
2 Replies

9. Shell Programming and Scripting

Need help to write a function in shell scripting to execute sql files

Hi, I am new to shell scripting and i need to write a automation script to execute sql files. I need to check the table if it is there in system tables and need to write a function to call the .sql files. For ex. I have a.sql,b.sql,c.sql files, where the sql file contains DELETE and INSERT... (1 Reply)
Discussion started by: Samah
1 Replies

10. Shell Programming and Scripting

Execute function as soon as input is provided in menu drive shell script

Hi All, I have a menu driven scripts. As you know while running the script we have to input the option such as 1,2, and 3 to execute function accordingly. but after selecting the input we have to press Enter. My requirement is to execute function as soon as we press the option. Is there... (5 Replies)
Discussion started by: kiran_j
5 Replies
BLAS-TEST(1)						     Linux Programmer's Manual						      BLAS-TEST(1)

NAME
x{s,d,c,z}c?blat{1,2,3} - testing programs for blas SYNOPSIS
x{s,d,c,z}c?blat1 x{s,d,c,z}c?blat{2,3} < parameter file DESCRIPTION
This manual page documents briefly the blas testing programs. This manual page was written for the Debian GNU/Linux distribution because the original programs do not have manual pages. blas is a library of Basic Linear Algebra routines, accessed through either a Fortran and/or a C interface. These routines are categorized into three levels: level1 referring to vecotr-vector operations, level2 to matrix-vector operations, and level3 to matrix-matrix opera- tions. In addition, all routines are written in four "precisions", single precision real (s), double precision real (d), cingle precision complex (c), and double precision complex (z). The testing binaries examine routines in the level indicated by the last character in the program name and in the precision indicated by the second character in the program name. The stem "blat" in the program name refers to a Fortran interface tester, whereas a "cblat" stem refers to a C interface tester. The test programs for levels 2 and 3 read a set of parameters specifying the problem ranges to examine on standard input. Sample input files are found in /usr/share/doc/blas-test/examples. Files of the form {s,d,c,z}in{2,3} are input files for the C interface testing pro- grams, while files or the form {s,d,c,z}blat{2,3}d are input files to the Fortran testing programs. On Debian systems, these programs are dynamically linked against the blas library. This enables the user to test and compare alternate versions of the library, such as those provided by atlas, through the use of the LD_LIBRARY_PATH and LD_PRELOAD environment variables. One can confirm the versions of the libraries being tested in a given environment with the aid of the ldd program. OPTIONS
These programs take no command line options. AUTHOR
This manual page was written by Camm Maguire <camm@enhanced.com>, for the Debian GNU/Linux system (but may be used by others). netlib January 29, 2002 BLAS-TEST(1)
All times are GMT -4. The time now is 08:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy