12-13-2012
With no indication of what conditions you are talking about, no indication of what you want the -i and -e options to do, and no indication of what you want the script to do with or without options; it is hard to make any useful suggestions.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all,
In a shell script, how can I do the following:
Find out the size of a mounted usb stick (df -h /media/usbdisk) and use the
result (physical size of USB stick) to set a loop-counter according to the disk size??
As a result, I do copy files of 4MB each as many times as they will fit... (1 Reply)
Discussion started by: joerg535
1 Replies
2. Shell Programming and Scripting
hello unix-people.
can u please tell me how i can get the current bandwidth usage of my machine on shell into variables?
thanks a lot (2 Replies)
Discussion started by: scarfake
2 Replies
3. Shell Programming and Scripting
i have a small problem getting a batxh shell script to run in shell
this is the code
the problem seems to be centered around the ffmpeg command, something maybe to do with the ' ' wrapping around the vhook part command
this is a strange problem , if i take the ffmpeg command and... (1 Reply)
Discussion started by: wingchun22
1 Replies
4. Shell Programming and Scripting
Hi All,
How could I use telnet to connect to Primary Host in the below shell script:
Could I use:
(
echo user
sleep 2
echo password
sleep 2
echo "ls ~"
sleep 2
echo "exit"
) | telnet hostname
... (1 Reply)
Discussion started by: a1_win
1 Replies
5. Shell Programming and Scripting
I'm trying to count and display the variables on a command line
#!/bin/ksh
$# argv
from command line: tryit2 this is a test
returns : tryit2: 4: not found. (1 Reply)
Discussion started by: Bperl1967
1 Replies
6. Shell Programming and Scripting
I need help on how to connect remote systems through ssh command in while loop of shell script. I was able to connect one remote system using ssh from shell script. Please find sample code snippet as given below…..
ssh "root@148.147.179.100" ARG1=$rpmFileName 'bash -s' <<'ENDSSH'
... (5 Replies)
Discussion started by: rajesh.tulluri
5 Replies
7. Shell Programming and Scripting
Suppose im in a directory A. which has sub-directories x/y/z m/n/p etc. Iam only considered with those which have a file netl.oa at the lowermost level. So i used the find command which gives me a list in the form
./abc/def/ghi/jkl/netl.oa
and so on
Now i want the names abc def jkl and ghi. My... (3 Replies)
Discussion started by: sid.verycool
3 Replies
8. Shell Programming and Scripting
Hi All,
I have a script which does report the cpu usuage, there are few output parameter/fields displayed from the script. My problem is I have monitor the output and decide
which cpu number (column 2) has maximum value (column 6).
Since the output is displayed/updated every seconds, it's very... (1 Reply)
Discussion started by: Optimus81
1 Replies
9. UNIX for Dummies Questions & Answers
Hi,
A basic sed question.
I have a set of files. In each file there is a number that I want replaced. For example, if I run sed I should get the following:
% cat test2.txt
#goofy//171.00
goofy 171.00
% sed -i 's/171/xxx/g' test2.txt
% cat test2.txt
#goofy//xxx.00
goofy xxx.00
... (2 Replies)
Discussion started by: pc2001
2 Replies
10. Shell Programming and Scripting
I'm a newbie to shell scripting, I was given this script to modify. This script that monitors when CPU Usage is too high based off the top command. The comparison is not working as it should. Its comparing a decimal to a regualar interger. When it send me an email, it send an email and ignores the... (21 Replies)
Discussion started by: mhannor
21 Replies
LEARN ABOUT OPENSOLARIS
bioerror
bioerror(9F) Kernel Functions for Drivers bioerror(9F)
NAME
bioerror - indicate error in buffer header
SYNOPSIS
#include <sys/types.h>
#include <sys/buf.h>
#include <sys/ddi.h>
void bioerror(struct buf *bp, int error);
INTERFACE LEVEL
Solaris DDI specific (Solaris DDI)
PARAMETERS
bp Pointer to the buf(9S) structure describing the transfer.
error Error number to be set, or zero to clear an error indication.
DESCRIPTION
If error is non-zero, bioerror() indicates an error has occured in the buf(9S) structure. A subsequent call to geterror(9F) will return
error.
If error is 0, the error indication is cleared and a subsequent call to geterror(9F) will return 0.
CONTEXT
bioerror() can be called from any context.
SEE ALSO
strategy(9E), geterror(9F), getrbuf(9F), buf(9S)
SunOS 5.11 26 May 1994 bioerror(9F)