CPUG

The Check Point User Group

A Resource For The Check Point Community.  Fast.  Useful.  Independent.

1. CCSA/CCSE One-Week Dual-Certification Training Course with CPUG in San Francisco!
    Courses Starting 12/8, (2009) 1/19, 2/9, 3/9, 4/6, 5/4, 6/8, 7/6, 8/3.
2. Join Us On LinkedIn - We now have a CPUG group.


Go Back   CPUG: The Check Point User Group > Check Point Firewall-1/VPN-1 Platforms > Sun Solaris
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2006-07-26
Junior Member
 
Join Date: 2006-07-24
Posts: 5
Rep Power: 0
piper has an average reputation (10+)
Default CPprofile and Solaris

Hi all.

For one strange reason I have suddenly problems with my CPprofile.csh.
When I do a "source /opt/CPshrd-V25/tmp/CPprofile.csh" I get this error-message:
bash: setenv: command not found
bash: /opt/CPshrd-V25/tmp/.CPprofile.csh: line 37: syntax error: unexpected end of file

This is the output of the CPprofile.csh:
------
setenv CPDIR "/opt/CPshrd-V25"
if ( $?LD_LIBRARY_PATH ) then
/bin/echo "${LD_LIBRARY_PATH}" | /bin/grep "${CPDIR}" >& /dev/null
if ( $status != 0 ) then
setenv LD_LIBRARY_PATH "${CPDIR}/lib:${LD_LIBRARY_PATH}"
endif
else
setenv LD_LIBRARY_PATH "${CPDIR}/lib"
endif

if ( $?PATH ) then
/bin/echo "${PATH}" | /bin/grep "${CPDIR}/bin" >& /dev/null
if ( $status != 0 ) then
setenv PATH "${CPDIR}/bin:${PATH}"
endif
/bin/echo "${PATH}" | /bin/grep "${CPDIR}/util" >& /dev/null
if ( $status != 0 ) then
setenv PATH "${CPDIR}/util:${PATH}"
endif
else
setenv PATH "${CPDIR}/bin:${CPDIR}/util"
endif
setenv CPMDIR "/opt/CPfw1-V25"
setenv SUROOT "/var/suroot"
setenv FW_BOOT_DIR "/etc/fw.boot"
setenv FGDIR "/opt/CPfg1-V25"
setenv PATH "${FGDIR}/bin:${PATH}"
setenv LD_LIBRARY_PATH "${FGDIR}/lib:${LD_LIBRARY_PATH}"
setenv MDSDIR "/opt/CPmds-V25"
setenv MDS_CPDIR "/opt/CPshrd-V25"
setenv MDS_SYSTEM "/opt/CPmds-V25/system"
setenv FWDIR "/opt/CPmds-V25"
setenv PATH "${MDSDIR}/bin:${MDSDIR}/scripts:${PATH}"
setenv LD_LIBRARY_PATH "${MDSDIR}/lib:/opt/CPfw1-V25/lib:${LD_LIBRARY_PATH}"
alias mdsenv 'set MDS_ARGV=(\!*); source /opt/CPmds-V25/scripts/mdsenviron'
alias mcd /bin/echo 'changing to $FWDIR/\!$ ; cd $FWDIR/\!$'
mdsenv
-----


Any idea why this is suddenly wrong?
Reply With Quote
  #2 (permalink)  
Old 2006-07-27
Member
 
Join Date: 2005-09-04
Location: Perth
Posts: 40
Rep Power: 0
seanmac1904 has an average reputation (10+)
Default Re: CPprofile and Solaris

.csh is for c shell or tcsh

you need to source .CPprofile.sh for bash or bourne or korn shell

cheers

Sean
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -7. The time now is 18:06.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0