This particular script will only work in ksh because of the way its constructed. It puts read after a pipe, which is something you can do in ksh but not a vanilla bourne shell because of the opposite order they create subshells.
You could use $( ) braces instead of read here, which ought to work in both:
Hi. Thanks for any help with this. I'm not new to programming but I am new to shell programming. I need a script that will
1. execute 'df -k' and return the volume names with specific text
2. surround each line of the above results in opening and closing xml tags
3. insert the results of step... (5 Replies)
How to write a program to
store the list of ordinary files and the directory files in the specified directory in two files called dir.dat and ord.dat. Then print the largest directory and largest file? (1 Reply)
Hi,
I have set two break points at 500 and 572 lines respectively.
after running prog using (gdb) run i m on the line 500 but
how two go to second breakpoints ie line 572 . when i m giving
(gdb) run it is asking again to run from starting lines . (1 Reply)
I have a java program to validate a XML file. I want to call this java program in a shell script which will be registered as concurrent program in oracle apps.
Can anyone please let me know the step by step appraoch required to call java program in shell script like ....intial steps... (1 Reply)
Hi,
I need to run a script whenever the Cron file is modified.
The requirement is whenever a user modifies the cron file, the script should run automatically.
Can you please provide your inputs ? (5 Replies)
Hi all,
I am trying to create shell script to run command then compare values with rule set for every 5 seconds and post a warning message if the compared value meet the rules.
-the script is related to Oracle/Sun product messaging server 6.2
1) command that need to be run to gather... (2 Replies)
Hello,
Please i'd like to run command in a script shell , how can i do ?
here my commands :
cd blcr-build // run command in this rep
sudo insmod ./blcr_imports/kbuild/blcr_imports.ko //root
sudo insmod ./cr_module/kbuild/blcr.ko //root
Thank you. (1 Reply)
Hi all,
Here is my scenario..
i need to get dates from an existing autosys calendar and compare it with current date with in a unix shell script.
Please help me out and give me an approach to handle this.......
the general autosys calendar command used is autocal_asc ,but this is... (1 Reply)
Hi all,
I have the following Perl script which is intended to run a Shell script and generate some logging for the purposes of tracking weather or not the script ran.
I get an error, of course, since I don't know what I'm doing really.
Here is the code:
#!/opt/perl/bin/perl -w
... (14 Replies)
I wish to replace "\\n" with a single white space.
The below does the job on command-line:
$ echo '/fin/app/scripts\\n/fin/app/01/sql' | sed -e 's#\\\\n# #g';
/fin/app/scripts /fin/app/01/sql
However, when i have the same code to a shell script it is not able to get me the same output:... (8 Replies)
Discussion started by: mohtashims
8 Replies
LEARN ABOUT OSX
img-xbm
img-xbm(n) img-xbm(n)
__________________________________________________________________________________________________________________________________________________NAME
img-xbm - Img, X Windows Bitmap Format (xbm)
SYNOPSIS
package require Tk
package require img::xbm ?1.4?
image create photo ?name? ?options?
_________________________________________________________________DESCRIPTION
The package img::xbm is a sub-package of Img. It can be loaded as a part of the complete Img support, via package require Img, or on its
own, via package require img::xbm.
Like all packages of Img it does not provide new commands, but extends the existing Tk command image so that it supports files containing
raster images in the X Windows Bitmap Format (xbm). More specifically img::xbm extends Tk's photo image type.
The name of the new format handler is xbm. This handler does not provide additional configuration options.
All of the above means that in a call like
image create photo ?name? ?options?
[1] Image data in xbm format (options -data and -file) is detected automatically.
[2] The format name xbm is recognized by the option -format.
SEE ALSO
img-bmp, img-dted, img-gif, img-ico, img-intro, img-jpeg, img-pcx, img-pixmap, img-png, img-ppm, img-ps, img-raw, img-sgi, img-sun, img-
tga, img-tiff, img-window, img-xbm, img-xpm
KEYWORDS
image handling, tk, xbm
COPYRIGHT
Copyright (c) 1995-2009 Jan Nijtmans <nijtmans@users.sourceforge.net>
Img 1.4 img-xbm(n)