Hi, Can anyone help me figure out the problem I'm having with a function call?
I have a header file, which sets an enum:
typedef enum {INFO, WARNING, FATAL} Levels;
int log_event (Levels, char *fmt, ...);
..then the function is called this way:
log_event(INFO, "Message text");
... (6 Replies)
I have a function check_ok in my abc.sh. which return me 1 or 0 . I want to call this fuction through other shell script. this shell also send two parameter to calling function.
Can you please tell me how. I am very new in unix.
#!/bin/bash
date_equal()
{
sqlplus -silent... (4 Replies)
hi,
can any one help me to correct this function call.
awk -F "," '{ {first=$1; sec=$2; tro=$3;quat=$4 }
if (tro == "")
{
$3 = search "$file2" "$first" "$file3"
{print $1","$2","$3","$4} }
else
{print $1","$2","$3 $4}}' $file1 > $file
search ()
{ (2 Replies)
hello,
when i call function inside awk traitement it doesn't work, i don't have error execution but i don't get result and if i call the function outside awk traitement it work well..
there's something special in awk call function??
here is the example :
awk -F "," '{ {first=$1; sec=$2;... (3 Replies)
Hello,
I have a problem with package and name space.
require "/Mehran/DSGateEngineLib/general.pl";
use strict;
sub System_Status_Main_Service_Status_Intrusion_Prevention
{
my %idpstatus;
my @result;
&General_ReadHash("/var/dsg/idp/settings",\%idpstatus);
#print... (4 Replies)
Below is my script that is function properly per my conditions but I am facing one problem here that is when one function fails then Iy should not check other functions but it calls the other function too So anyone can help me how could i achieve this?
iNOUT i AM GIVING TO THE... (1 Reply)
fnPingFunction()
{
ping -c1 $1
if ]
then result = 'Y'
else
result = 'N'
fi
}
value=$(fnPingFunction "localhost")
echo $value
How do i get the value from the function ? value should be the result output Y or N (4 Replies)
Discussion started by: lazydev
4 Replies
LEARN ABOUT SUSE
dvired
dvired(1) teTeX dvired(1)NAME
dvired - print dvi-files
SYNOPSIS
dvired [ options ] file
DESCRIPTION
dvired behaves like dvips, except for the fact that two logical pages are put onto each physical sheet of paper.
For options, see dvips(1). This program only interprets the following options:
-o file - redirect output into file.
-P printer - direct output to printer.
-f - direct output to stdout.
Any other option is passed directly to dvips.
EXAMPLES
It is assumed that the PRINTER-variable is set.
dvired -Plw foo - send output to printer lw.
dvired -o foo.ps foo - send output to file foo.ps.
dvired -pp4-7 foo - send 4 pages (reduced onto 2 sheets) of foo to the printer.
dvired foo -f | ghostview - - preview output with ghostview.
SEE ALSO dvips(1)BUGS
dvired is fixed on A4 paper size. If you want to use it with other paper, you have to change the settings within the source.
AUTHOR
Thomas Esser <te@dbs.uni-hannover.de>
teTeX 09/94 dvired(1)