arguments too long error


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting arguments too long error
# 1  
Old 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..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Too many arguments error

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

2. Shell Programming and Scripting

How to avoid "Too many arguments" error, when passing a long String literal as input to a command?

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

3. UNIX for Dummies Questions & Answers

Error as too many arguments

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

4. Shell Programming and Scripting

Passing arguments--Error

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

5. Shell Programming and Scripting

Bash too many arguments error

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

6. UNIX for Dummies Questions & Answers

vi : Line too Long Error

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

7. Shell Programming and Scripting

Too many arguments error

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

8. UNIX for Dummies Questions & Answers

Lines too long error

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

9. UNIX for Dummies Questions & Answers

"Arguments too long"

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

10. UNIX for Dummies Questions & Answers

Arguments too long????

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
Login or Register to Ask a Question
suspend(1)                                                         User Commands                                                        suspend(1)

NAME
suspend - shell built-in function to halt the current shell SYNOPSIS
sh suspend csh suspend ksh suspend DESCRIPTION
sh Stops the execution of the current shell (but not if it is the login shell). csh Stop the shell in its tracks, much as if it had been sent a stop signal with ^Z. This is most often used to stop shells started by su. ksh Stops the execution of the current shell (but not if it is the login shell). ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
csh(1), kill(1), ksh(1), sh(1), su(1M), attributes(5) SunOS 5.10 15 Apr 1994 suspend(1)