12-16-2008
Hi Zaxxon ,
Thanks For the Reply.. as i said i can't go for Shc as it is not installed in my server . I am getting error message when i use shc.
Sorry for my misinterpretation that it is not supported by ksh.Since it is not installed in my server i thought wrong.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
How can i compile the procedure code that is there in a script file (.sql) in unix. (0 Replies)
Discussion started by: krishna_gnv
0 Replies
2. Shell Programming and Scripting
Dear other forum members,
I'm writing a script for my homework, but I'm scratching all over my head and still can't figure out what I did wrong. Please help me. I just started to learn about bash scripting, and I appreciate if anyone of you can point out my errors. I thank you in advance.
... (3 Replies)
Discussion started by: ilove2smoke
3 Replies
3. UNIX for Dummies Questions & Answers
Hi there,
I have written the shell script to illustrate arithmetic operations using case command as shown below:
#!/bin/bash
echo -n "Enter any two numbers :"
read a
read b
MENU="
Select any one option
1) Addition
2) Substraction
3) Multiplication
4) Division
5) Quit"
clear
$x=0;... (5 Replies)
Discussion started by: grc
5 Replies
4. Programming
Below is the top of my Makefile. On one machine, I have mysql_config5, and another, I have mysql_config. In my .bashrc file of one UNIX machine, I added an alias so that that mysql_config5 is mysql_config, however, when I do make, it doesn't use that environment and I get compile errors, unless I... (1 Reply)
Discussion started by: pyramation
1 Replies
5. UNIX for Dummies Questions & Answers
I have just installed OpenBSD on a 333MHz PPC iMac G3. It has a 6GB HDD that has been partitioned as 1GB MacOS 8.5.1, 3GB MacOS X 10.3.9, 2GB OpenBSD 4.8. I now need to install a bootloader so that my computer can recognize the OpenBSD partition at startup. I have been trying to install... (0 Replies)
Discussion started by: t04st3r
0 Replies
6. Shell Programming and Scripting
I'm trying to write a bash script and call it "compile" such that running it allows me to compile multiple files with the options "-help," "-backup," and "-clean". I've got the code for the options written, i just can't figure out how to read the input string and then translate that into option... (5 Replies)
Discussion started by: travis.batzer
5 Replies
7. Shell Programming and Scripting
I know about bash -x, set -x and -v but disappears from Command Line Interface in fraction of second ......
I am looking for a command or script ..complies each line and shows the output after executing each line ....( similar what we have in C )
Thanks in Advance (2 Replies)
Discussion started by: frintocf
2 Replies
8. Shell Programming and Scripting
Hello I'm having a problem trying to get this Bash shell program to function properly.
Purpose: In the current directory, more into the sub-directories and compile the .c files.
Heres my code:
#!/bin/bash
wd=$(pwd)
for i
do
cd ${i}
gcc *.c
cd $wd
done
Then I save it... (8 Replies)
Discussion started by: murphy
8 Replies
9. Shell Programming and Scripting
I have a shell script (.sh) and I want to pass a parameter value to the awk command but I am getting exception, please assist.
diff=$1$2.diff
id=$2 new=new_$diff
echo "My id is $1"
echo "I want to sync for user account $id"
##awk command I am using is as below
cat $diff | awk... (2 Replies)
Discussion started by: Ashunayak
2 Replies
10. Programming
Hi guys,
Can you please help with compiling 123.sh file using g++?
The idea is to make 123.sh not readable (make it kind of binary).
Is there any idea ho to achieve this? (18 Replies)
Discussion started by: nypreH
18 Replies
LEARN ABOUT ULTRIX
xinstallcolormap
XInstallColormap(3X11) MIT X11R4 XInstallColormap(3X11)
Name
XInstallColormap, XUninstallColormap, XListInstalledColormaps - control colormaps
Syntax
XInstallColormap(display, colormap)
Display *display;
Colormap colormap;
XUninstallColormap(display, colormap)
Display *display;
Colormap colormap;
Colormap *XListInstalledColormaps(display, w, num_return)
Display *display;
Window w;
int *num_return;
Arguments
colormap Specifies the colormap.
display Specifies the connection to the X server.
num_return
Returns the number of currently installed colormaps.
w Specifies the window that determines the screen.
Description
The function installs the specified colormap for its associated screen. All windows associated with this colormap immediately display with
true colors. You associated the windows with this colormap when you created them by calling or
If the specified colormap is not already an installed colormap, the X server generates a event on each window that has that colormap. In
addition, for every other colormap that is installed as a result of a call to the X server generates a event on each window that has that
colormap.
can generate a error.
The function removes the specified colormap from the required list for its screen. As a result, the specified colormap might be unin-
stalled, and the X server might implicitly install or uninstall additional colormaps. Which colormaps get installed or uninstalled is
server-dependent except that the required list must remain installed.
If the specified colormap becomes uninstalled, the X server generates a event on each window that has that colormap. In addition, for
every other colormap that is installed or uninstalled as a result of a call to the X server generates a event on each window that has that
colormap.
can generate a error.
The function returns a list of the currently installed colormaps for the screen of the specified window. The order of the colormaps in the
list is not significant and is no explicit indication of the required list. When the allocated list is no longer needed, free it by using
can generate a error.
Diagnostics
A value for a Colormap argument does not name a defined Colormap.
A value for a Window argument does not name a defined Window.
See Also
XChangeWindowAtrributes(3X11), XCreateColormap(3X11), XCreateWindow(3X11), XFree(3X11)
X Window System: The Complete Reference, Second Edition, Robert W. Scheifler and James Gettys
XInstallColormap(3X11)