01-05-2009
thanx
thanx a lot everybody for the help!!!
10 More Discussions You Might Find Interesting
1. Programming
Hi
i used the following code to copy a directory from a source location to dest.
argv contains the source loc i/p by the user.
strcpy(source,argv);
strcpy(dest,"/home/MainServer/Job_dir/");
system("cp -r $source $dest");
it complies properly but during execution of the program it... (2 Replies)
Discussion started by: mridula
2 Replies
2. Shell Programming and Scripting
Can this be done without using te system command? I have a directory with a large number of files in it, but I am interested in only the 8 most recent.
The directory looks like
-rw-rw-rw- 1 adsm adsm 13412 Sep 22 08:31 events_dump_09222005.csv.gz
-rw-rw-rw- 1 adsm adsm ... (5 Replies)
Discussion started by: reggiej
5 Replies
3. Programming
Hi
In my code am openeing a mozilla in Solaris with some url using sytem(url)
this is working fine for most of the urls but for url of type-
www.abc.com?action=p&a=23
it is passing only www.abc.com?action=p to the browser & thus the url is not opening properly.
Why is system command... (7 Replies)
Discussion started by: nimishm
7 Replies
4. Shell Programming and Scripting
Hi,
I'm wanting to run an nslookup, dig or whatever to check for the existence of a printer. The PERL script will display the results on the screen, but I can't figure out how to capture the result & test the value. Any ideas will be greatly appreciated!!! Thank You (1 Reply)
Discussion started by: lorik
1 Replies
5. Shell Programming and Scripting
I was trying commands within awk. i got stuck here. i take 2 files.
cat input
first
second
third
fourth
fifth
sixth
seventh
eighth
ninht
tenthcat add
***************
Nirbhay
***************i run the command
awk '{ if ( NR == 5 ) { print system("cat add") "\n" $0 } else {... (4 Replies)
Discussion started by: nirbhay
4 Replies
6. AIX
Hello..
Plz, Any one can help me ?
when I execute a printing system with the command lp -d<name of printer>, no result with all printers.
I have verified the three processes : qdaemon, lpd, writesrv (No problem).
thank's (0 Replies)
Discussion started by: okbainf
0 Replies
7. UNIX for Dummies Questions & Answers
Hello All,
I am trying to run this system command from batch file.....
my @filename = ( 'cleartool', 'find', '. -type', 'f', '-ver','lbtype_sub(baseline name)', '-print' );
system(@filename);
But while executing the batch it is throwing this error:
cleartool: Error: Pathname not found:... (1 Reply)
Discussion started by: suvenduperl
1 Replies
8. Programming
The man system says
During execution of the command, SIGCHLD will be blocked, and SIGINT and SIGQUIT will be ignored.
What does this mean?
And if i am making a function that does what system does how do i write this signal stuff? (19 Replies)
Discussion started by: omega666
19 Replies
9. Shell Programming and Scripting
Hi
I have created a perl script & running it using Linux machine. I want my script to die when system command is unsuccessful but script is dying even when system command gets executed successfully. :wall:
I am using the command below :-
system($cmd) || die "FAILED $!";
print "Hello";
... (2 Replies)
Discussion started by: Priyanka Gupta
2 Replies
10. Shell Programming and Scripting
Hi,
I have a file 'acct_07756734.dat' and need to do some grep operation from a script
grep 'usage' acct_07756734.dat|wc -l
8
I need to do the same operation in aperl script,its is like
system(grep 'usage' acct_07756734.dat|wc -l);
in this case I wont be getting the value '8',instead success... (4 Replies)
Discussion started by: rkrish
4 Replies
LEARN ABOUT DEBIAN
pbmreduce
pbmreduce(1) General Commands Manual pbmreduce(1)
NAME
pbmreduce - read a portable bitmap and reduce it N times
SYNOPSIS
pbmreduce [-floyd|-fs|-threshold ] [-value val] N [pbmfile]
DESCRIPTION
Reads a portable bitmap as input. Reduces it by a factor of N, and produces a portable bitmap as output.
pbmreduce duplicates a lot of the functionality of pgmtopbm; you could do something like pnmscale | pgmtopbm, but pbmreduce is a lot
faster.
pbmreduce can be used to "re-halftone" an image. Let's say you have a scanner that only produces black&white, not grayscale, and it does a
terrible job of halftoning (most b&w scanners fit this description). One way to fix the halftoning is to scan at the highest possible res-
olution, say 300 dpi, and then reduce by a factor of three or so using pbmreduce. You can even correct the brightness of an image, by
using the -value flag.
OPTIONS
By default, the halftoning after the reduction is done via boustrophedonic Floyd-Steinberg error diffusion; however, the -threshold flag
can be used to specify simple thresholding. This gives better results when reducing line drawings.
The -value flag alters the thresholding value for all quantizations. It should be a real number between 0 and 1. Above 0.5 means darker
images; below 0.5 means lighter.
All flags can be abbreviated to their shortest unique prefix.
SEE ALSO
pnmenlarge(1), pnmscale(1), pgmtopbm(1), pbm(5)
AUTHOR
Copyright (C) 1988 by Jef Poskanzer.
02 August 1989 pbmreduce(1)