12-13-2005
Perderabo - Super ! Those worked. Thanks much.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i've been told that c shell does not support functions/subroutines is that true?
if not can somebody give me the basic syntax for creating a function. it would very much appreciated!
thanks in advance (1 Reply)
Discussion started by: ballazrus
1 Replies
2. Shell Programming and Scripting
Hi All,
I have a very long code called myfunction -> "if ..... else if .... else if ..end if "
And i have several other codes which need to call the "myfunction" code.
How can C-shell call a function "B]myfunction" ? Can any body give me an example ?? (1 Reply)
Discussion started by: Raynon
1 Replies
3. Shell Programming and Scripting
Hi,
I have a query ..
i have 2 scripts say 1.sh and 2.sh
1.sh contains many functions written using shell scripts.
2.sh is a script which needs to call the functions definded in 1.sh
function calls are with arguments.
Can some one tell me how to call the functions from 2.sh?
Thanks in... (6 Replies)
Discussion started by: jisha
6 Replies
4. Shell Programming and Scripting
hi friends,
I am working with shell commands and all these works properly.
Then i created a small function which includes these commands.
Now the problem arises. When the commands are run by calling this fuction.it
shows error.
Why i am not able to run the unix command inside a function.... (1 Reply)
Discussion started by: gjithin
1 Replies
5. Shell Programming and Scripting
hey guys,
i made up a library file called common.lib so as to reuse the same code without typing it again. here is the code. its pretty basic .
## This is the second function
compare()
{
file1 = $1
file2 = $2
cmp $file1 $file2
if
then
echo "comparison is possible"... (1 Reply)
Discussion started by: Irishboy24
1 Replies
6. Shell Programming and Scripting
Hi all,
I have a doubt..
If we create shell functions through a script itself, can we use the same functions in command line also..
for example:
$ cat a.sh
##### Functions
function system_info
{
}
function show_uptime
{
} (4 Replies)
Discussion started by: raghu.iv85
4 Replies
7. Shell Programming and Scripting
so i have a very big script that has the following format:
functionA () {
....
...
....
}
Results=$(functionA)
the code inside of functionA is very huge. so by the time the script gets to the "Results=" part, several seconds have already passed. the script is about 15MB in size.... (4 Replies)
Discussion started by: SkySmart
4 Replies
8. Shell Programming and Scripting
so i noticed that when a shell script has a function defined in it, running "sh -x" on that shell script from the command line doesnt show what the function is doing. i like this.
is there anyway for anyone to get around that? to be able to see exactly what a function or functions are doing? (4 Replies)
Discussion started by: SkySmart
4 Replies
9. Shell Programming and Scripting
Hello,
I have a requirement to apply hashing algorithm on flat file on one or more columns dynamically based on header
sample input file
ID|NAME|AGE|GENDER
10|ABC|30|M
20|DEF|20|F
say if i want multiple columns based on the header example id,name or id,age or name,gender and hash and... (13 Replies)
Discussion started by: mkathi
13 Replies
10. UNIX for Beginners Questions & Answers
I want to find c function definition with pattern with shell script by checking condition for each line:
data_type
functionname(param_list){
....
}
I knew cscope or ctag is usable for this task, but if there any ways to do without using them.
I am thinking of checking line condition... (3 Replies)
Discussion started by: cmdcmd
3 Replies
LEARN ABOUT NETBSD
itesio
ITESIO(4) BSD Kernel Interfaces Manual ITESIO(4)
NAME
itesio -- ITE IT87xxF Super I/O driver
SYNOPSIS
itesio0 at isa? port 0x2e
itesio1 at isa? port 0x4e
DESCRIPTION
The itesio driver provides support for the Environment Controller and the Watchdog Timer on the IT87xxF Super I/Os, and may be used to moni-
tor hardware sensors or setting up a watchdog timeout value for the system.
The itesio driver has 15 sensors:
Sensor Units Typical Use
Temp0 uK CPU Temp
Temp1 uK System Temp
Temp2 uK Aux Temp
VIN0 uV DC Vcore A
VIN1 uV DC Vcore B
VIN2 uV DC +3.3V
VIN3 uV DC +5V
VIN4 uV DC +12V
VIN5 uV DC -12V
VIN6 uV DC -5V
VIN7 uV DC STANDBY
VBAT uV DC VBAT
Fan0 RPM CPU Fan
Fan1 RPM System Fan
Fan2 RPM Aux Fan
The itesio Watchdog Timer is configurable via the wdogctl(8) utility and has a resolution between 1 and 65535 seconds. The Watchdog Timer is
not supported on the IT8705 Super I/O.
SEE ALSO
envsys(4), envstat(8), wdogctl(8)
HISTORY
The itesio driver first appeared in OpenBSD 3.4 and was then ported to NetBSD 4.0.
AUTHORS
The itesio driver was written by Julien Bordet <zejames@greyhats.org> and Juan Romero Pardines <xtraeme@netbsd.org>.
BUGS
Interrupt support is unimplemented.
BSD
April 2, 2008 BSD