From: hadi motamedi on
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
From: hadi motamedi on
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?
From: Ian Collins on
On 08/11/10 06:50 PM, hadi motamedi wrote:
> 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?

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

--
Ian Collins
From: hadi motamedi on
On Aug 11, 12:26 pm, Ian Collins <ian-n...(a)hotmail.com> wrote:
> On 08/11/10 06:50 PM, hadi motamedi wrote:
>
> > 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?
>
> Specify the shell type on the first line of the script.
>
> --
> Ian Collins

#!/bin/csh -fb
Thank you very much for your help.
From: jay on
On Aug 11, 3:54 am, hadi motamedi <motamed...(a)gmail.com> wrote:
> On Aug 11, 12:26 pm, Ian Collins <ian-n...(a)hotmail.com> wrote:
>
>
>
> > On 08/11/10 06:50 PM, hadi motamedi wrote:
>
> > > 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?
>
> > Specify the shell type on the first line of the script.
>
> > --
> > Ian Collins
>
> #!/bin/csh -fb
> Thank you very much for your help.

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.