Hello
Am very new to linux/unix, workin in it since 10 days only. I had started with bash and now I need to work in tcsh. I have changed shell for my user profile using 'chsh'
I use gedit for script writing. Now in the first line if I write #!/bin/tcsh i get d msg
/home/usr/.cshrc: No such... (2 Replies)
All;
Thanks for reading.
I'm having a heck of a time with this cshell script that fires off an hp temperature monitor and rotates logs.
I keep getting
'/opt/temperature/temp.sh: line 22: syntax error: unexpected end of file'
when I try to 'sh /opt/temperature/temp.sh" it
--script... (3 Replies)
Hello, I have two files ..
1. inventory_i.txt
2. inventory_b.txt
I want to check if these two files exists. If exists, then do the process, otherwise, quite...
if ; then
echo "exists"
else
echo " does not exists"
fi
The above logic is not working... It is always, displaying Does... (2 Replies)
Hello
I have Linux Debian & tcsh shell. My mini script not run :(.
Startup script displays a message:
user@host:dir% ./test
if: Badly formed number.
script:
#!/bin/tcsh -f
#script check size files systems
set x = `df -h /usr | tail -n1 | awk '{ print( $5 ); }'`
set y = 60%
if ($x... (5 Replies)
Hi,
I am totaly new to create a script . Please help.
I have file name retrived from SAP table into a internal table .
Like :-
/home/td_8d02_int_data_IPCL/ILLUSTRATIONS/CGM/l_pc_112138_01_0_01_00.cgm
/home/td_8d02_int_data_IPC-L/ILLUSTRATIONS/CMP/l_pc_112138_01_0_01_00.cmp
Objective... (1 Reply)
Hi,
I would like to check whether all the directories exists or not. I tried the below but it gives some error. below is the excerpt from my original script
24 #Check if the required directories are exists
25 dirExists() {
26
27 if
28 then
29 echo "required... (1 Reply)
Hi,
I have a csh script. I want to set some variables and execute some command from a file in that script.
abc.csh
echo "primary script"
b
setenv XXX ddd
set XX
make abc
I want to execute the commands of "b" file from abc.csh. How can i do that.
Please view this link: How to use... (3 Replies)
Hi..
i have a file ABC_*.txt in source directory which will come evry 30 min and same file will be moved to working directory first time ...and will perform some operations then we archive ABC_*.txt ..this will run for 30 min to 45 min
from 2nd time onwards requirement is ...i need to check... (3 Replies)
Discussion started by: dssyadav
3 Replies
LEARN ABOUT REDHAT
ppmquantall
ppmquantall(1) General Commands Manual ppmquantall(1)NAME
ppmquantall - run ppmquant on a bunch of files all at once, so they share a common colormap
SYNOPSIS
ppmquantall [-ext extension] ncolors ppmfile ...
DESCRIPTION
Takes a bunch of portable pixmap as input. Chooses ncolors colors to best represent all of the images, maps the existing colors to the new
ones, and overwrites the input files with the new quantized versions.
If you don't want to overwrite your input files, use the -ext option. The output files are then named the same as the input files, plus a
period and the extension text you specify.
Verbose explanation: Let's say you've got a dozen pixmaps that you want to display on the screen all at the same time. Your screen can
only display 256 different colors, but the pixmaps have a total of a thousand or so different colors. For a single pixmap you solve this
problem with ppmquant; this script solves it for multiple pixmaps. All it does is concatenate them together into one big pixmap, run
ppmquant on that, and then split it up into little pixmaps again.
(Note that another way to solve this problem is to pre-select a set of colors and then use ppmquant's -map option to separately quantize
each pixmap to that set.)
SEE ALSO ppmquant(1), ppm(5)BUGS
It's a csh script. Csh scripts are not portable to System V. Scripts in general are not portable to non-Unix environments.
AUTHOR
Copyright (C) 1991 by Jef Poskanzer.
27 July 1990 ppmquantall(1)