hello Bakunin , thanks for the detailed explanation , regarding your recommendation to get rid of that , where shall i use this command ? i tried and not work , i think may be because file of translation does not exist or i write the path wrongly , wish if you can help , knowing that my script location is (C:\cygwin64\home\ibrahims)
, shall i put this command in beginning of my script ?.
--- Post updated at 10:13 AM ---
dear all
moving forward with the script i get this error :
i am getting error when i run below script
Code:
the error message is :
Code:
any help please ? any advises as well how to debug such code or how to debug in general using vi editor is highly appreciated
Moderator's Comments:
edit b bakunin: Please use CODE-tags! Editing them in on your behalf is getting old quickly. Thank you!
I am trying to set up a variable based on the name of the file.
function script_name {
if
then
job_name='MONITOR'
return job_name;
elsif
then
job_name='VERSION'
return job_name
fi
}
for i in `ls *log`
do
script_name $i
done. (4 Replies)
:b:hi,
I have a script as given below:
pr_det="1"
if
then
awk ' BEGIN {printf("%23s","session")}' >> report.txt
awk ' BEGIN {printf "\n"} ' >> report.txt
else
awk ' BEGIN {printf("%55s","file_dsc")} ' >> report.txt
awk ' BEGIN {printf("%101s","no_recs")} '... (1 Reply)
year=`date '+%Y'`
month=`date '+%m'`
day=`date '+%d'`
day=`expr $day - 1`
case $month in
1 | 3 | 5 | 7 | 8 | 10 | 12);;
if($day =7 ); then
$day=6
fi
4 | 6 | 9 | 11);;
if ; then
$day=31
fi
2);;
if ; then
if ; then (2 Replies)
Hi ,
I am getting an error when I run the script for checking word "view" in a file . I am using if statement. like this
if
then
VW_VAR=` cat $TN.${ecmdate}.sql1 | grep -i view | awk '{print $3}' | cut -d '.' -f2 `
echo " VW_$VW_VAR "
sed -e... (16 Replies)
HI i am getting error while executing the given statement
for filename in `cat a/file.lst`
do
if then
echo "Exit Code Description :File $filename - is missing in Input Directory" >a.log
exit
else
count1=`awk 'END {print NR}' $filename`
echo "$count1">>a.log
count2=`awk 'END {print... (4 Replies)
Hi,
This is my script to catch any oracle errors.
In this, the $sqlerr returns
ORA-01017: invalid username/password; logon denied
when i specify wrong username/password
the if condition is failing. how can i resolve the issue.
the if statement gives error
sqloutput=`sqlplus -s -L... (1 Reply)
Hi, can someone please tell me what is wrong with this code? I just want it to check if the file size is greater than 2000kb.
if
Thanks!
---------- Post updated at 09:23 PM ---------- Previous update was at 09:21 PM ----------
I should probably post the full code:
#!/bin/sh... (9 Replies)
Hi all,
After so many tries and searching online for ideas, I had trouble accomplishing this. Is it possible to do something like this in KSH to run an if statement on a return code?
Unfortunately the code below fails... Would anyone know how to fix the below attempt?
if "$`{pkginfo... (3 Replies)
Good morning,
I am 100% mew to Unix and am trying to troubleshoot why a pgm written 3 years ago, suddenly is not working properly. It is part Perl with some UNIX commands thrown in. I need to verify what the UNIX commands are doing before I can continue with my other troubleshooting.
print... (7 Replies)
Discussion started by: jaacmmason
7 Replies
LEARN ABOUT DEBIAN
asn1_parser2tree
asn1_parser2tree(3) libtasn1 asn1_parser2tree(3)NAME
asn1_parser2tree - API function
SYNOPSIS
#include <libtasn1.h>
asn1_retCode asn1_parser2tree(const char * file_name, ASN1_TYPE * definitions, char * errorDescription);
ARGUMENTS
const char * file_name
specify the path and the name of file that contains ASN.1 declarations.
ASN1_TYPE * definitions
return the pointer to the structure created from "file_name" ASN.1 declarations.
char * errorDescription
return the error description or an empty string if success.
DESCRIPTION
Function used to start the parse algorithm. Creates the structures needed to manage the definitions included in file_name file.
RETURNS
ASN1_SUCCESS if the file has a correct syntax and every identifier is known, ASN1_ELEMENT_NOT_EMPTY if definitions not ASN1_TYPE_EMPTY,
ASN1_FILE_NOT_FOUND if an error occured while opening file_name, ASN1_SYNTAX_ERROR if the syntax is not correct, ASN1_IDENTIFIER_NOT_FOUND
if in the file there is an identifier that is not defined, ASN1_NAME_TOO_LONG if in the file there is an identifier whith more than
ASN1_MAX_NAME_SIZE characters.
COPYRIGHT
Copyright (C) 2006-2011 Free Software Foundation, Inc..
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.
SEE ALSO
The full documentation for libtasn1 is maintained as a Texinfo manual. If the info and libtasn1 programs are properly installed at your
site, the command
info libtasn1
should give you access to the complete manual.
libtasn1 2.13 asn1_parser2tree(3)