07-21-2006
arguments too long error
Hi,
I am running a .csh shell and get this error.
set dir=/u21/oradata/SDE/cass
echo /u21/oradata/SDE/cass
/u21/oradata/SDE/cass
set compression=jpeg
set bustab=CASS_ORTHO2005
set keyword=cnty_2005
set resampling=bilinear
set image_list=/u21/oradata/SDE/cass/*.tif
Arguments too long.
I did not get the errors when the image_list was only 6 for testing. Now the image_list is > 3000 and its too long.
Seems I am hitting a limit somehere.
Here is the rest of the script.
set first_one_loaded=false
foreach image ($image_list)
if ($first_one_loaded == "false") then
sderaster -o import -l $bustab,image -G $proj_id -f $image -c $compression -q 75 -g $connection -k $keyword
else
sderaster -o mosaic -l $bustab,image -v 1 -f $image $connection
endif
set first_one_loaded=true
end
Does this error have to do with the memory ulimit?
Thanks,
Kathy
Last edited by kburrows; 07-21-2006 at 02:32 PM..
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm trying to tranfer files via ftp form UNIX to Linux and vice versa.
When I tried mget command I received this message: "arguments too long".
What should I do to transfer multiple files?????? (2 Replies)
Discussion started by: rrivas
2 Replies
2. UNIX for Dummies Questions & Answers
Hi everyone,
I know this sounds stupid but on my Sun solaris machine I have csh script that finds all files 7 days older and then moves it to another area. The find works but the move I get "Arguments too long". I know that in c shell can not handel more 1706 arguments.
Can anyone give... (2 Replies)
Discussion started by: Peterh
2 Replies
3. UNIX for Dummies Questions & Answers
Hi Gurus,
I have a big file having around 5000 lines. What I need to do is as below.
$cat myfile
aaaa
bbbb
ccc
ddd
...
I want the output to be as below:
'aaaa,'bbbb','cccc'....
For this I have written something like this
code:
vi sac.txt |nawk '{printf NR","}'>ss
code: (2 Replies)
Discussion started by: thana
2 Replies
4. Shell Programming and Scripting
I need help. I have created my script for a simple calculator but my multiplication operator does not work. This is the the code:
#!/bin/bash
echo "Enter number1"
read Number1
echo"Enter number2"
read Number2
echo"Operator is *"
read opr
if
then
expr $Number1 \*... (1 Reply)
Discussion started by: Pauline mugisha
1 Replies
5. UNIX for Dummies Questions & Answers
Hi !
I am woking on Solaris 5.10 and face a problem sometimes when i try to open files in the vi editor .
Sometime when the file is big i am not able to view the file in vi and i get the error like
I guess vi have some line size setting and if the lines are ,longer than that... (4 Replies)
Discussion started by: Paarth
4 Replies
6. Shell Programming and Scripting
Hello, I've got this little script that gets a bunch of comics and puts them in an html file. However, when I check that the comic URL is there and that it's a new one, I get the "too many arguments" error. The script is this:
CADURL=`curl --silent http://www.cad-comic.com/cad/ | grep -o... (10 Replies)
Discussion started by: killer54291
10 Replies
7. Shell Programming and Scripting
Hi,
i have a file.txt with data
Bangalore
Chennai
Hyd
filename of the script is: new.sh
result=`cat file.txt | grep $1`
if
then
echo pass
else
echo fail
fi
i am executing the file in the cmd line as "sh new.sh Bangalore"
o/p is pass
if i give "sh new.sh delhi"
o/p is... (6 Replies)
Discussion started by: harsha85
6 Replies
8. UNIX for Dummies Questions & Answers
kindly some one pls let me know what is the prb with the code. tired of debugging. psl let me know the details on resolution
#!/bin/bash
echo enter name
read name
if || ] ; then
echo $name
else
echo none
fi (4 Replies)
Discussion started by: anandpasunoori
4 Replies
9. Shell Programming and Scripting
Hi,
I am using awk here.
Inside an awk script, I have a variable which contains a very long XML data in string format (500kb).
I want to pass this data (as argument) to curl command using system function.
But getting Too many arguments error due to length of string data(payloadBlock).
I... (4 Replies)
Discussion started by: cool.aquarian
4 Replies
10. Shell Programming and Scripting
Here's my code.
21 if ; then
22
23 ls addr*.tmp | while IFS= read -r entry; do # Starts Reading .cfg files one by one ...
24 echo $entry
I get the below error at line number 21
line 21:
Can you tell me how can i alter my code to avoid the error ? (3 Replies)
Discussion started by: mohtashims
3 Replies
LEARN ABOUT HPUX
ppm2tiff
ppm2tiff(1) User Commands ppm2tiff(1)
NAME
ppm2tiff - create a TIFF file from a PPM image file
SYNOPSIS
ppm2tiff [options] [input.ppm] output.tif
DESCRIPTION
ppm2tiff converts a file in the PPM image format to TIFF. By default, the TIFF image is created with data samples packed (PlanarConfigura-
tion=1), compressed with the Lempel-Ziv and Welch algorithm (Compression=5), and with each strip no more than 8 kilobytes. These character-
istics can be overridden or explicitly specified with the options described below.
If the PPM file contains grayscale data, the PhotometricInterpretation tag is set to 1 (min-is-black). Otherwise, the PhotometricInterpre-
tation tag is set to 2 (RGB).
If no PPM file is specified on the command line, ppm2tiff reads from the standard input.
OPTIONS
The following options are supported:
-c Specify a compression scheme to use when writing image data:
-c jpeg Baseline JPEG compression algorithm.
-c lzw Lempel-Ziv and Welch algorithm. This is the default algorithm.
-c none No compression.
-c packbits PackBits compression algorithm.
-c zip Deflate compression algorithm.
-r Write data with a specified number of rows per strip. By default, the number of rows per strip is selected so that each
strip is approximately 8 kilobytes.
-R Mark the resultant image to have the specified X and Y resolution, in dots per inch.
OPERANDS
The following operands are supported:
input.ppm The name of the input file that contains PPM data.
output.tif The name of the output file that contains TIFF data.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWTiff |
+-----------------------------+-----------------------------+
|Interface stability |External |
+-----------------------------+-----------------------------+
SEE ALSO
tiffinfo(1), tiffcp(1), tiffmedian(1), libtiff(3)
NOTES
Updated by Breda McColgan, Sun Microsystems Inc., 2004.
SunOS 5.10 26 Mar 2004 ppm2tiff(1)