12-14-2009
this may not be the right place where you get canned scripts. but if you are ready to get your hands wet and want to know how, this is a great place to be
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
Test1.ksh
#! /bin/ksh
for i in $*
do
#echo "$i"
ksh test2.ksh $i &
done
test2.ksh
#! /bin/ksh
sleep 5s
echo "From Test 1 ==> $1"
exit 0;
I am executing as follows:
ksh test1.ksh a b c (10 Replies)
Discussion started by: risshanth
10 Replies
2. Solaris
Hi Everyone,
I would like to write a Back-up script for huge files and 3 day old file. I think i need to use Tar command for it. But I am not sure how this can be done. Can someone please assist me on this. (4 Replies)
Discussion started by: gehlnar
4 Replies
3. AIX
I have a user that runs a menu driven application, is there a way to see what scripts this application is executing in the back ground?
OS=AIX 4.3 (1 Reply)
Discussion started by: mangolinux
1 Replies
4. Shell Programming and Scripting
#!/bin/sh
##########################################################################################################
#This script is being used for AOK application for cleaning up the .out files and zip it under logs directory.
# IBM
# Created
#For pdocap201/pdoca202 .out files for AOK
#1.... (0 Replies)
Discussion started by: mridul10_crj
0 Replies
5. UNIX for Dummies Questions & Answers
Hello all, i'm stumped.... I need to list all directories with all there info and exclude the files, then vice versa. I am not sure if I need to string several ls commands together or how to even do that. I believe I need to do some variation of ls -l but need to figure out how to take out the... (5 Replies)
Discussion started by: citizencro
5 Replies
6. Shell Programming and Scripting
My script is as follows:
#!/bin/bash
STR1="test"
echo $STR1
STR2="/bldtmp/"$STR1
echo $STR2
STR3=$STR2'/tmp'
echo $STR3
output i am geting
----------------
test
/bldtmp/test
/tmptmp/test
but my need is:
------------------
test
/bldtmp/test (1 Reply)
Discussion started by: dchoudhury
1 Replies
7. Shell Programming and Scripting
lyang0@lyang0-OptiPlex-755:~$ ./test.sh
.
lyang0@lyang0-OptiPlex-755:~$ cat test.sh
#!/bin/bash
echo `dirname $0`
lyang0@lyang0-OptiPlex-755:~$ pwd
/home/lyang0
it doesn't get "/home/lyang0" and only when run /home/lyang0/test.sh it will get, but how can I do, then it can get the real... (8 Replies)
Discussion started by: yanglei_fage
8 Replies
8. Shell Programming and Scripting
Hi,
balajesuri and durden_tyler, I have found your perl script for the thread https://www.unix.com/shell-programming-scripting/176370-perl-script-help-me-extracting-string.html, but find it difficult to understand the syntax.
Could you or any forum members kindly shed some light on the logic... (3 Replies)
Discussion started by: royalibrahim
3 Replies
9. UNIX and Linux Applications
The problematic directory is the following:
/root/.cache/deja-dup
This directory grows until my "/" is full and then the restoring activity fails.
I already tried to create a symbolic link with origin another partition where I have more space. However during the restoring activity ... (4 Replies)
Discussion started by: puertas12
4 Replies
10. What is on Your Mind?
Retro Games has announced that the C64 is back, this time full-sized with a working keyboard for the dedicated retro home-computer fan, available December 2019.
See also:
CNN:
Iconic 80s computer The Commodore 64 to return with fully-functional keyboard
YouTube:
The C64 | Trailer
... (2 Replies)
Discussion started by: Neo
2 Replies
LEARN ABOUT REDHAT
ppmntsc
PPMNTSC(1) General Commands Manual PPMNTSC(1)
NAME
ppmntsc - Make RGB colors legal for NTSC or PAL color systems.
SYNOPSIS
ppmntsc [ --pal ] [ --legalonly ] [ --illegalonly ] [ --correctedonly ] [ --verbose ] [ --debug ] [ infile ]
Minimum unique abbreviations of options are acceptable.
DESCRIPTION
This program makes colors legal in the NTSC (or PAL) color systems. Often, images generated on the computer are made for use in movies
which ultimately end up on video tape. However, the range of colors (as specified by their RGB values) on a computer does not match the
range of colors that can be represented using the NTSC (or PAL) systems. If an image with "illegal" colors is sent directly to an NTSC (or
PAL) video system for recording, the "illegal" colors will be clipped. This may result in an undesirable looking picture.
This utility tests each pixel in an image to see if it falls within the legal NTSC (or PAL) range. If not, it raises or lowers the pixel's
saturation in the output so that it does fall within legal limits. Pixels that are already OK just go unmodified into the output.
Input is from the file named input. If input is -, input is from Standard Input. If you don't specify input, input is from Standard
Input.
Output is always to Standard Output.
This program handles multi-image PPM input, producing multi-image PPM output.
OPTIONS
--pal Use the PAL transform instead of the default NTSC.
--verbose
Print a grand total of the number of illegal pixels.
--debug
Produce a humongous listing of illegal colors and their legal counterparts. NOTE: This option may produce a great deal of output.
--legalonly
Output only pixels that are already legal. Output black in place of pixels that are not.
--illegalonly
Output only pixels that are illegal (and output them uncorrected). Output black in place of pixels that are already legal.
--correctedonly
Output only pixels that are corrected versions of illegal pixels. Output black in place of pixels that are already legal.
SEE ALSO
ppm(5), ppmdepth(1), ppmdim(1), ppmbrighten(1)
AUTHOR
Wes Barris, Minnesota Supercomputer Center, Inc., Bryan Henderson
4th Berkeley Distribution April 19, 2000 PPMNTSC(1)