05-20-2008
I think missing a semicolon
Try:
if [! [$RUN_TYPE == 'r' || $RUN_TYPE == 'd']] ; then
Also, I am a little concerned about the spacing. In the future, post code with codetags. If you highlight your pasted code text, and then click on the pound # sign above, the forum will maintain your spacing.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hello There..
I came to a situation where I need to write flat files using shell scripts, I need to pull the records from the oracle database and create the flat file, This process should be automated.
Can any shell script expert out here to help me.. please..
Will be really glad to... (3 Replies)
Discussion started by: coolbuddy
3 Replies
2. UNIX for Advanced & Expert Users
Can someone help me with writing a unix script for following requirement
1) I have a log file in which we have start time and end time (format: hh:mm:ss)
Example: starting script on Thu Jun 5 20:50:52
Thu Jun 5 21:55:33 - Script Completed
2) I want to extract start time and end time of... (0 Replies)
Discussion started by: santosham
0 Replies
3. Shell Programming and Scripting
Can someone help me with writing a unix script for following requirement
1) I have a log file in which we have start time and end time (format: hh:mm:ss)
Example: starting script on Thu Jun 5 20:50:52
Thu Jun 5 21:55:33 - Script Completed
2) I want to extract start time and end time of... (0 Replies)
Discussion started by: santosham
0 Replies
4. UNIX for Dummies Questions & Answers
Can someone help me with writing a unix script for following requirement
1) I have a log file in which we have start time and end time (format: hh:mm:ss)
Example: starting script on Thu Jun 5 20:50:52
---------
Thu Jun 5 21:55:33 - Script Completed
2) I want to extract... (4 Replies)
Discussion started by: santosham
4 Replies
5. Shell Programming and Scripting
Hi Guru's,
I have to write a shell script which groups file names based upon the certain matching string pattern, then creates the Tar file for that particular group of files and then zips the Tar file created for the respective group of files.
For example, In the given directory these files... (3 Replies)
Discussion started by: rahu_sg
3 Replies
6. UNIX for Dummies Questions & Answers
Hello,
I'm a newbie in shell script.
So, i would like to create a shell script which take 2 IN parameters (PARAM1 and PARAM2).
This script need to create 2 files as :
I need to create this file /etc/apache2/sites-available/PARAM2 :
<VirtualHost *:80>
DocumentRoot "/home/PARAM1/www"... (0 Replies)
Discussion started by: chatlumo
0 Replies
7. Shell Programming and Scripting
Hi ,
Please help me getting this done.
Write an automated shell program(s) that can create, monitor the log files and report the issues for matching pattern.
(i) Conditions for creating log files.
Log file is created with date (example 2010_03_27.log). If the log file size is 10 Mb for... (1 Reply)
Discussion started by: itian2010
1 Replies
8. Shell Programming and Scripting
Hello friends,
I am a script which dispalys a multiple files with their contents.
for exm:
suppose two file test1.txt and test2.txt.
when I run my script it have to display the below O/P.
test1.txt
-rw-r----- 1 sranga staff 91 Sep 23 02:18 calc.sh
-rw-r----- 1 sranga ... (2 Replies)
Discussion started by: sivaranga001
2 Replies
9. Shell Programming and Scripting
Hi Experts,
I want to write a script, based upon the following requirement
1) I am having 5 application
$ cd logs
$ ls -l
drwxr-xr-x 2 natraj nat 5.0K Sep 20 10:25 one
drwxr-xr-x 2 natraj nat 5.0K Sep 20 10:39 two
drwxr-xr-x 2 natraj nat 1.5K Sep 20 10:58... (4 Replies)
Discussion started by: natraj005
4 Replies
10. Shell Programming and Scripting
I have the below script triggered daily at 330am in the morning, since last 7 days job not writing anything to database.
below impala shell calling shell file which has sql , it is extracting data and loads to a flat file txt file. which is going wrong for last 1 week.
need help, echo... (2 Replies)
Discussion started by: cplusplus1
2 Replies
PSIGN(1) General Commands Manual PSIGN(1)
NAME
psign - produce a RADIANCE picture from text.
SYNOPSIS
psign [ options ] [ text ]
DESCRIPTION
Psign produces a RADIANCE picture of the given text. The output dimensions are determined by the character height, aspect ratio, number of
lines and line length. (Also the character size if text squeezing is used.) If no text is given, the standard input is read.
-cb r g b Set the background color to r g b The default is white (1 1 1).
-cf r g b Set the foreground color to r g b The default is black (0 0 0).
-dr Text reads to the right (default).
-du Text reads upwards.
-dl Text reads to the left (upside down).
-dd Text reads downwards.
-h cheight
Set the character height to cheight. The default is 32 pixels.
-a aspect Set the character aspect ratio (height/width) to aspect. The default value is 1.67.
-x xsize Set the horizontal image size to xsize. Use with -y option (below) in place of the -h specification to control output image size
directly. If the character aspect ratio (-a option, above) is non-zero, then one of the specified x or y output dimensions may
be reduced to maintain this ratio. If direction is right (-dr) or left (-dl), then it is not necessary to give the -y option,
since it can be computed from the character height (-h).
-y ysize Set the vertical image size to ysize. Use with the -x option (described above). If direction is up (-du) or down (-dd), then it
is not necessary to give the -x option, since it can be computed from the character height (-h).
-s spacing
Set the intercharacter spacing to spacing. The magnitude of this value is multiplied by the character height over the aspect
ratio (ie. the character width) to compute the desired distance between characters in the output. The sign of the value, posi-
tive or negative, determines how this ideal spacing is used in the actual placement of characters. If spacing is positive, then
the overall width of the line will not be affected, nor will indentation of textual elements. Thus, the text format will be
mostly unaffected. However, spacing between characters will reflect their relative size for a more natural appearance. If spac-
ing is negative, characters will be squeezed together to meet the spacing critereon, regardless of how it might affect the format
of the output. The default value for spacing is zero, which is interpreted as uniformly spaced characters.
-f fontfile
Load the font from fontfile. The default font is helvet.fnt
EXAMPLE
To put a big "Hi!" on the terminal:
psign -h 22 -a 1 -cb 0 0 0 -cf 1 1 1 Hi! | ttyimage
ENVIRONMENT
RAYPATH path to search for font files
AUTHOR
Greg Ward
BUGS
The entire bitmap is stored in memory, which can be a problem for large and/or high-resolution signs.
SEE ALSO
getinfo(1), pcompos(1), pfilt(1), ttyimage(1)
RADIANCE
10/9/97 PSIGN(1)