05-24-2011
Many thanks for this info, i wasn't aware of that. I tried it and it worked well.
bakunin
8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Not sure if I am using the correct terminology:
I have a user setup in a menu. I want to let the user browse a file using the pg.
I want to prevent the person from doing <ctrl>c and being able to exit the script to the command line.
How do I do this? (6 Replies)
Discussion started by: MizzGail
6 Replies
2. UNIX for Dummies Questions & Answers
Hi, I'm trying to use "read" to read in SQL lines and then apply to UDB. However KSH is expanding the *'s in the SQL into a list of all the files in the current directory...
Anyway to turn this off?
while read SQLStatement
do
echo "Running : " $SQLStatement... (8 Replies)
Discussion started by: gaijin 06
8 Replies
3. UNIX for Dummies Questions & Answers
Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies
4. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
5. Shell Programming and Scripting
I have code fragment like
{
aa
bb
cc
} > $LOG
aa bb cc, all call function "ff", I want "ff" to print on the screen,but others do not print on the scree, is there a method? I can't use "tee", becasue tee I meet the write "error"
ff()
{
echo "hello"
} (2 Replies)
Discussion started by: yanglei_fage
2 Replies
6. UNIX for Dummies Questions & Answers
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies
7. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
8. AIX
Hi 2 all,
i have had AIX 7.2
:/# /usr/IBMAHS/bin/apachectl -v
Server version: Apache/2.4.12 (Unix)
Server built: May 25 2015 04:58:27
:/#:/# /usr/IBMAHS/bin/apachectl -M
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
mpm_worker_module (static)
... (3 Replies)
Discussion started by: penchev
3 Replies
XDoes*() XDoes*()
Name
XDoesBackingStore, XDoesSaveUnders, DoesBackingStore, DoesSaveUnders - query server support for backing store or save unders.
Synopsis
int XDoesBackingStore(screen)
Screen *screen;
Bool XDoesSaveUnders(screen)
Screen *screen;
Arguments
screen Specifies the appropriate Screen structure.
Returns
XDoesSaveUnders() returns True or False. XDoesBackingStore() returns WhenMapped, NotUseful, or Always.
Description
XDoesSaveUnders() returns a boolean value indicating whether the screen supports save unders. If True, the screen supports save unders.
If False, the screen does not support save unders.
XDoesBackingStore() returns a value indicating whether the screen supports backing stores. The value returned can be one of WhenMapped,
NotUseful, or Always.
Save unders and backing stores are optional server features controlled with window attributes. These macros tell you whether the server
supports them. A "save under" is an area beneath a window (usually a menu or dialog box) that the server saves, so that when the window is
removed from the screen, the underlying applications do not need to redraw their windows. This speeds up user response with a slight cost
in increased server memory consumption. A "backing store" is an off-screen copy of a window, maintained even when the window is not visi-
ble or not mapped. The server uses the copy to redraw the window whenever that window would otherwise have received an Expose event. This
reduces the load on applications at the expense of a possibly great increase in server memory usage.
The C language macros DoesSaveUnders() and DoesBackingStore() are equivalent and slightly more efficient.
See Also
XChangeWindowAttributes(), XGetWindowAttributes().
Xlib - Macro Equivalents XDoes*()