05-28-2003
We tried to compile it and when we run it it gave us an error in line 15 which is empty. We have no clue why is doing this. Thanks once again...
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I keep getting errors messages for the "else" statement at line 81?
#!/bin/ksh
######### Environment Setup #########
PATH=/gers/nurev/menu/pub/sbin:/gers/nurev/menu/pub/bin:/gers/nurev/menu/pub/mac
:/gers/nurev/menu/adm/sbin:/gers/nurev/menu/adm/bin:/gers/nurev/menu/adm/mac:/ge... (8 Replies)
Discussion started by: heprox
8 Replies
2. Shell Programming and Scripting
I am trying to create a script but it is giving me errors on Cygwin for the following script. Could someone tell me, what am I doing wrong?
choice=1000
echo "choice is $choice"
while ; do
echo "choice is $choice"
echo 'Please select your option:'
echo '1. Option 1'
echo '2. Option 2'... (3 Replies)
Discussion started by: amitg1980
3 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I have this example script which gives error ": unexpected operator/operand". I need the '' brackets for operator precedence.
#!/bin/ksh
x="abc"
y="xyz"
z="123"
if -a
then
print "yes"
else
print "no"
fi
Thanks (2 Replies)
Discussion started by: rs1969
2 Replies
4. Shell Programming and Scripting
Hi
I've made a short script but it is not working. Can some pl. help me out in this?
./123.sh
#! /usr/bin/ksh
# for changing to this directory
cd /layered/relational/scripts
When I run the above scripts, it doesn't change to the above directory. I don't what is the problem? the... (2 Replies)
Discussion started by: Mike1234
2 Replies
5. Shell Programming and Scripting
Hello all,
so this is a script i did for an assignement,
- first option greets the user according to the time after fetching his name
- second options isn't implemented
- third check the performance according to how many users are using the system
- creates a log of names, time and ip of the... (14 Replies)
Discussion started by: ibzee33
14 Replies
6. Shell Programming and Scripting
Please see below mentioned my script ... it ran once without any issue .... then after it is not coming out .... please suggest what is wrong?
#!/bin/ksh
## if (( ${num_errors} > 0 ));
export ACULOG=/home/varshnes/input
export num_errors=10
**** Search for 'Start correcting roll up... (7 Replies)
Discussion started by: heyitsmeok
7 Replies
7. UNIX for Dummies Questions & Answers
I get this error on these lines when i run this script:"for i in /home;do
file2=`ls -s $i`
if ;then
ls - s $i
fi
done (7 Replies)
Discussion started by: kotsos13
7 Replies
8. Shell Programming and Scripting
Hi...
I am fed up in file handing with array for comparing....
1st I want save first 2 columns of file 1
I tried like this,,
{getline< "file1";ln=$1; lt=$2}then I read second file's 1st and 2nd column..and saved like this
and small calculation and initialization
var1 =$1
var2 =$2... (5 Replies)
Discussion started by: Akshay Hegde
5 Replies
9. Shell Programming and Scripting
Dear All
The following is part of my script:
echo ${myarray}
mytitle=`awk '{print substr(${myarray}, 0, length(${myarray})-4)}' /dev/null`
the echo ${myarray} works fine;
however, I keep getting following error for the mytitle=.. part:
awk: line 1: syntax error at or near {
awk: line... (3 Replies)
Discussion started by: littlewenwen
3 Replies
10. Shell Programming and Scripting
Hi ! all I am just trying to check range in my datafile
pls tell me why its resulting wrong
admin@IEEE:~/Desktop$ cat test.txt
0 28.4
5 28.4
10 28.4
15 28.5
20 28.5
25 28.6
30 28.6
35 28.7
40 28.7
45 28.7
50 28.8
55 28.8
60 28.8
65 28.1... (2 Replies)
Discussion started by: Akshay Hegde
2 Replies
LEARN ABOUT DEBIAN
xkblibraryversion
XkbLibraryVersion(3) XKB FUNCTIONS XkbLibraryVersion(3)
NAME
XkbLibraryVersion - Determines the compatibility of a library at runtime.
SYNOPSIS
Bool XkbLibraryVersion (int *lib_major_in_out, int *lib_minor_in_out);
ARGUMENTS
lib_major_in_out
Specifies and returns the major Xkb library version.
lib_minor_in_out
Specifies and returns the minor Xkb library version.
DESCRIPTION
If an application is dynamically linked, both the X server and the client-side X library must contain the Xkb extension in order for the
client to use the Xkb extension capabilities. Therefore a dynamically linked application must check both the library and the server for
compatibility before using Xkb function calls. A properly written program must check for compatibility between the version of the Xkb
library that is dynamically loaded and the one used when the application was built. It must then check the server version for compatibility
with the version of Xkb in the library.
If your application is statically linked, you must still check for server compatibility and may check library compatibility. (It is possi-
ble to compile against one set of header files and link against a different, incompatible, version of the library, although this should not
normally occur.)
Pass the symbolic value XkbMajorVersion in lib_major_in_out and XkbMinorVersion in lib_minor_in_out. These arguments represent the version
of the library used at compile time. The XkbLibraryVersion function backfills the major and minor version numbers of the library used at
run time in lib_major_in_out and lib_minor_in_out. If the versions of the compile time and run time libraries are compatible, XkbLi-
braryVersion returns True, otherwise, it returns False.
In addition, in order to use the Xkb extension, you must ensure that the extension is present in the server and that the server supports
the version of the extension expected by the client. Use XkbQueryExtension to do this, as described in the next section.
RETURN VALUES
True The XkbLibraryVersion returns True if the versions of the compile time and run time libraries are compatible.
False The XkbLibraryVersion returns False if the versions of the compile time and run time libraries are not compatible.
SEE ALSO
XkbMajorVersion(3), XkbMinorVersion(3), XkbQueryExtension(3)
X Version 11 libX11 1.5.0 XkbLibraryVersion(3)