word too long


 
Thread Tools Search this Thread
Operating Systems Solaris word too long
# 1  
Old 02-04-2008
word too long

Hello,
When I try to run a shell script, It throws an error:

$ ./SQLExecute.csh
Word too long
$ echo $CLASSPATH
/u02/installs/calypso/calypsorel90000/jars/
$ echo $PATH
/usr/bin:/usr/local/bin:/usr/ccs/bin:/usr/openwin/bin:/u02/app/oracle/product/10.2.0/db_1:/u02/app/oracle/product/10.2.0/db_1/bin:/u02/app/oracle/product/10.2.0/db_1/network/admin:/u02/installs/java/jre1.5.0_13/bin:/u02/installs/calypso/calypsorel90000/jars/
$

Please suggest - What could be the reason?
# 2  
Old 02-04-2008
Are you trying to echo a word which has more than 1024 characters in it ?

Try the same in bash / ksh / zsh !!!
# 3  
Old 02-04-2008
I am trying to run a shell script:

$ zsh
slhrpsol002% ./SQLExecute.csh
Word too long
slhrpsol002% bash
bash-3.00$ ./SQLExecute.csh
Word too long
bash-3.00$ ksh
$ ./SQLExecute.csh
Word too long
$
# 4  
Old 02-04-2008
Whats the she-bang line ?

If thats something for "csh"

try running it as,

Code:
zsh <scriptname>

# 5  
Old 02-04-2008
There is no shebang line in any scripts and all scripts have extension .csh

bash-3.00$ zsh /u02/calypsorel90000/bin/unix/jdk12/SQLExecute.csh
Word too long
bash-3.00$
# 6  
Old 02-04-2008
I doubt the env variable PATH Smilie

Is it too long ?

Is .cshrc sourced many times ?
# 7  
Old 02-04-2008
$ echo $PATH
/usr/bin:/usr/local/bin:/usr/ccs/bin
$ ls -la
drwxr-xr-x 2 calypso users 512 Feb 4 06:57 .
drwxrwxrwx 10 root root 512 Feb 4 06:10 ..
-rw------- 1 calypso users 21 Feb 4 06:57 .bash_history
-rw-r--r-- 1 calypso users 403 Feb 4 06:11 .profile
-rw------- 1 calypso users 3546 Feb 4 07:28 .sh_history
-rw-r--r-- 1 calypso users 136 Feb 2 07:32 local.cshrc
-rw-r--r-- 1 calypso users 157 Feb 2 07:32 local.login
-rw-r--r-- 1 calypso users 174 Feb 2 07:32 local.profile
$ more local.cshrc
#ident "@(#)local.cshrc 1.2 00/05/01 SMI"
umask 022
set path=(/bin /usr/bin /usr/ucb /etc .)
if ( $?prompt ) then
set history=32
endif
$
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to search for a word in column header that fully matches the word not partially in awk?

I have a multicolumn text file with header in the first row like this The headers are stored in an array called . which contains I want to search for each elements of this array from that multicolumn text file. And I am using this awk approach for ii in ${hdr} do gawk -vcol="$ii" -F... (1 Reply)
Discussion started by: Atta
1 Replies

2. UNIX for Beginners Questions & Answers

UNIX script to check word count of each word in file

I am trying to figure out to find word count of each word from my file sample file hi how are you hi are you ok sample out put hi 1 how 1 are 1 you 1 hi 1 are 1 you 1 ok 1 wc -l filename is not helping , i think we will have to split the lines and count and then print and also... (4 Replies)
Discussion started by: mirwasim
4 Replies

3. Shell Programming and Scripting

Find a word and increment the number in the word & save into new files

Hi All, I am looking for a perl/awk/sed command to auto-increment the numbers line in file, P1.tcl: run_build_model sparc_ifu_dec run_drc set_faults -model path_delay -atpg_effectiveness -fault_coverage add_delay_paths P1 set_atpg -abort_limit 1000 run_atpg -ndetects 1000 I would like... (6 Replies)
Discussion started by: jypark22
6 Replies

4. Shell Programming and Scripting

Search for the word and exporting 35 characters after that word using shell script

I have a file input.txt which have loads of weird characters, html tags and useful materials. I want to display 35 characters after the word "description" excluding weird characters like $&lmp and without html tags in the new file output.txt. Help me. Thanx in advance. I have attached the input... (4 Replies)
Discussion started by: sachit adhikari
4 Replies

5. Shell Programming and Scripting

Search for the word and exporting 35 characters after that word using shell script?

I have a file input.txt which have loads of weird characters, html tags and useful materials. I want to display 35 characters after the word description excluding weird characters like $$#$#@$#@***$# and without html tags in the new file output.txt. Help me. Thanx in advance. My final goal is to... (11 Replies)
Discussion started by: sachit adhikari
11 Replies

6. UNIX for Dummies Questions & Answers

Find EXACT word in files, just the word: no prefix, no suffix, no 'similar', just the word

I have a file that has the words I want to find in other files (but lets say I just want to find my words in a single file). Those words are IDs, so if my word is ZZZ4, outputs like aaZZZ4, ZZZ4bb, aaZZZ4bb, ZZ4, ZZZ, ZyZ4, ZZZ4.8 (or anything like that) WON'T BE USEFUL. I need the whole word... (6 Replies)
Discussion started by: chicchan
6 Replies

7. Shell Programming and Scripting

To read data word by word from given file & storing in variables

File having data in following format : file name : file.txt -------------------- 111111;name1 222222;name2 333333;name3 I want to read this file so that I can split these into two paramaters i.e. 111111 & name1 into two different variables(say value1 & value2). i.e val1=11111 &... (2 Replies)
Discussion started by: sjoshi98
2 Replies

8. Shell Programming and Scripting

word too long error in script but not elsewhere...

Hi, I have written a tcsh script that reads 3 directories, lists the files within them and continues on to evaluate each file independently. When I run the script, it gets to a certain directory that contains ~250 files, when you echo the directory, there are 4332 characters. So, when I use the... (1 Reply)
Discussion started by: nixjennings
1 Replies

9. UNIX for Dummies Questions & Answers

word too long..problem while sourcing .cshrc

I am setting my PATH & LD_LIBRARY_PATH through .cshrc file while sourcing it on a old shell i am getting the error word too long .and the changes which i anm doing doesn't get updated . i am in a multi user environment so the only way to do the changes only for my shell is to do it that way. ... (1 Reply)
Discussion started by: mobydick
1 Replies

10. Shell Programming and Scripting

Can a shell script pull the first word (or nth word) off each line of a text file?

Greetings. I am struggling with a shell script to make my life simpler, with a number of practical ways in which it could be used. I want to take a standard text file, and pull the 'n'th word from each line such as the first word from a text file. I'm struggling to see how each line can be... (5 Replies)
Discussion started by: tricky
5 Replies
Login or Register to Ask a Question