Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

setenv:too many arguments?

1,645 views
Skip to first unread message

hadi motamedi

unread,
Aug 11, 2010, 2:27:00 AM8/11/10
to
Dear All
I am running an script and it returns 'setenv:Too many arguments' .
Can you please let me know how can I solve this problem?
Thank you

hadi motamedi

unread,
Aug 11, 2010, 2:50:22 AM8/11/10
to
Please find below my case :
$grep setenv ./subs_mgmt
setenv SMGUIROOT 'pwd'
setenv TCL_LIBRARY ../lib/tcl8.0
setenv TK_LIBRARY ../lib/tk8.0
setenv PATH ${PATH}:/usr/sbin:/usr/etc:.
setenv SM_SERVER_PORT 2120
$./subs_mgmt
setenv:Too many arguments
Can you please let me know how can I solve my problem?

Ian Collins

unread,
Aug 11, 2010, 4:26:03 AM8/11/10
to

Specify the shell type on the first line of the script.

--
Ian Collins

hadi motamedi

unread,
Aug 11, 2010, 4:54:41 AM8/11/10
to

#!/bin/csh -fb
Thank you very much for your help.

jay

unread,
Aug 11, 2010, 1:25:03 PM8/11/10
to

put quotes around the multiple words.

csh:
setenv HHH "owrug rwg3r sdr 53 sfg w"

sh:
HHH="orgu th 3 t0-h 3th 3ht"
export HHH

j.

0 new messages