dear all,
can anyone help me to explain all the commands in the .profile bourne shell below ? really appreciate ur help. PLEASE.
1
2 # @(#) $Revision: 72.2 $
3
4 # Default user .profile file (/usr/bin/sh initialization).
5
6 # Set up the terminal:
7 if
8 then
9 eval ` tset -s -Q -m... (1 Reply)
currentSid=${TWO_TASK:-$ORACLE_SID}
echo $currentSid
this script returns value of ORACLE_SID but what i am not getting is
what is ":-" doing ?? (1 Reply)
See topic.
I need to understand how it works before i start to work on a program anyone have any resources or the time to explain it thanks. (5 Replies)
Dear Member,
i need help in this script
filename_DD_MM_YYYY_HHMMSS.log
this is the log file format
i need to split this name to three variables
1 variables contain filename
2 variables contain _DD_MM_YYY_
3 variables contains HHMMSS
... (7 Replies)
Hi frnds,
one my frnds has given resolution for my problem as below. it working great , but i couldnt understand somethings in the script.
Why ++ operator after the function calling. how these each block working. will each run for each input line sequencially or one block for all the lines... (9 Replies)
I am trying to figure out what this script does. Can someone help?
delt_file=`diff /transfer/adx/tey_header.txt /transfer/adx/tey_header_yesterdy.txt`
if ] ; then
touch /transfer/adx/lrstb028_ctl2.ctl
else
if test -f "/transfer/adx/lrstb028_ctl2_2.ctl" ; then
touch... (1 Reply)
Hi i am new to shell script can any one please explain me the code below which is written for execution of python scripts which are located in same folder.
please explain the code line by line
ls *.py > xx
while
do
read myline || break
python $myline
done<xx
Thanks
Mukthyar.... (1 Reply)
think using shift would help me finish my script but cant get it work without your help. would appreciate if you give me a example with shift & counter in the same script so I can later work on that to my one.
Thanks and Good Luck! (1 Reply)
Discussion started by: me.
1 Replies
LEARN ABOUT ULTRIX
xlator_call
xlator_call(8) System Manager's Manual xlator_call(8)Name
xlator_call - shell script to invoke PostScript translators
Syntax
xlator_call datatype orientation pagesize width length indent
Description
This Bourne shell script can be called by the line printer daemon to invoke the appropriate translator to convert each data type to Post-
Script. The data type passed by may be specified by using the command with the -Ddatatype option, or by using the Da=datatype capability
in the file.
For a file in a data syntax to be translated to PostScript, the script must contain a case branch which recognizes the data type string and
calls a suitable filter. The supplied recognizes the ANSI, ASCII, ReGIS and Tektronix 4014 data types.
Arguments
datatype
The valid data types are: or any other for which a translator has been installed.
orientation
The valid orientations are: portrait or landscape.
pagesize
The valid page sizes are: or
width
The width (in characters) of the page.
length
The length (in lines) of the page.
indent
The amount (in spaces) the output is to be indented.
All the valid arguments are described in detail by the reference page.
Examples
An example shell script is shown below:
case $datatype in
ansi)
exec ansi_ps -F $pagesize -O $orientation -e "$@";;
ascii)
echo "( 04) cvn {} def"
exec ln03rof -w$width -l$length -i$indent;;
postscript)
exec cat;;
tek4014)
exec tek4014_ps -F $pagesize -O $orientation;;
regis)
exec regis_ps -F $pagesize -O $orientation;;
*)
echo "$0: Translator for data type $datatype not installed" >&2
esac
When the shell script is called, the path searched is:
/usr/local/lib/lpdfilters:/usr/ucb:/bin:/usr/bin:
/usr/lib:/usr/lib/lpdfilters
Files
The script
See Alsolno3rof(8), printcap(5), ansi_ps(8), lpd(8)xlator_call(8)