Working in a bash environment, in the following example, how do I direct the error message that putting in an invalid flag (-j for example) would normally produce to dev/null?
while getopts "abcd" opt
do
case "$opt" in
i) a etc ;;
r) b etc ;;
f) c etc ;;
v) d etc ;;
\?) direct actual error message to dev/null
Consider:
#!/bin/sh
#this is a shell script in sh (bourne)
grep missingfile 2>errout.txt
It works from the command line, but keeps producing errors from the script. So how do I redirect in a bash shell...or bourne? (3 Replies)
Hi
i am running oracle database import through a script and script scans the import log to see if there are any errors.
Now the porblem is that when i run the script the import log appears on the screen even if i direct the output of import to /dev/null.
imp "'/ as sysdba'"... (5 Replies)
Hello,
When I run the following program:
ssh 192.168.1.4 bash -l <<EOF
> echo foo >/dev/stderr
> EOF
I get the following confusing error.
bash: line 1: /dev/stderr: No such device or address
Does anyone know why and how to fix it? I'm capturing stdout in a variable, but I... (2 Replies)
How are these two different? They both prevent output and error from being displayed. I don't see the use of the "&"
echo "hello" > /dev/null 2>&1
echo "hello" > /dev/null 2>1 (3 Replies)
I apologize if this question has been answered else where or is too elementary.
I ran across a KSH script (long unimportant story) that does this:
if ; then
CAS_SRC_LOG="/var/log/cas_src.log 2>&1"
else
CAS_SRC_LOG="/dev/null 2>&1"
fithen does this:
/usr/bin/echo "heartbeat:... (5 Replies)
Sorry for my ignorance... but...
I've a script with some output redirect to /dev/null,
example:
fsck.ext3 -a /dev/sdb1 1>/dev/null 2>/dev/null
How can I simplify this redirect ? (1 & 2)
thanks (3 Replies)
I'm using an text-to-speech synthesis in a script, and I need to redirect it's output to /dev/null
how can I do that ? And how to redirect the stream to his normal output then (sound card ) ?
thankx (2 Replies)
Hello.
When I run a .ksh that contains the command below, and there is no file available in the source location the "FILE_NAME_*.CSV not found" error is still being displayed.
FILEN=$(ssh ${SOURCE_SERV} "cd ${SOURCE_LOCATION} ;ls ${FILES}") 2> /dev/null.
This is interfering with the rest... (4 Replies)
Hi there,
I need to execute a command in the bash. The program prints some standard (output and) error and then wants the user to choose one of several options and type the according input. I am trying to solve this issue in a bash script but also running into some circular dependency. How can I... (7 Replies)
Discussion started by: fredestet
7 Replies
LEARN ABOUT DEBIAN
plmesh
PLMESH(3plplot) PLplot API PLMESH(3plplot)NAME
plmesh - Plot surface mesh
SYNOPSIS
plmesh(x, y, z, nx, ny, opt)
DESCRIPTION
Plots a surface mesh within the environment set up by plw3d(3plplot). The surface is defined by the two-dimensional array z[nx][ny], the
point z[i][j] being the value of the function at (x[i], y[j]). Note that the points in arrays x and y do not need to be equally spaced,
but must be stored in ascending order. The parameter opt controls the way in which the surface is displayed. For further details see the
PLplot documentation.
Redacted form: plmesh(x, y, z, opt)
This function is used in example 11.
ARGUMENTS
x (PLFLT *, input)
Pointer to set of x coordinate values at which the function is evaluated.
y (PLFLT *, input)
Pointer to set of y coordinate values at which the function is evaluated.
z (PLFLT **, input)
Pointer to a vectored two-dimensional array with set of function values.
nx (PLINT, input)
Number of x values at which function is evaluated.
ny (PLINT, input)
Number of y values at which function is evaluated.
opt (PLINT, input)
Determines the way in which the surface is represented: opt=DRAW_LINEX: Lines are drawn showing z as a function of x for each value
of y[j]. opt=DRAW_LINEY: Lines are drawn showing z as a function of y for each value of x[i]. opt=DRAW_LINEXY: Network of lines is
drawn connecting points at which function is defined.
AUTHORS
Geoffrey Furnish and Maurice LeBrun wrote and maintain PLplot. This man page was automatically generated from the DocBook source of the
PLplot documentation, maintained by Alan W. Irwin and Rafael Laboissiere.
SEE ALSO
PLplot documentation at http://plplot.sourceforge.net/resources.
August, 2012 PLMESH(3plplot)