error in .login file


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting error in .login file
# 1  
Old 03-15-2011
error in .login file

I have one server (consider A) .While logining into server A using username as u1 .I am not getting any command not found error but while I am loging into that server A using username as u2 , I am getting this below error while login
Code:
/dun/d2ddm0/bea/weblogic91/server/lib/jconn2.jar:/dun/d2ddm0/jakarta-ant-1.5/lib/ant.jar: Command not found.
sbin:/opt/VRTSvmsa/bin:/remotebu/datatools/sbacktrack4.3.00/install:/sybase/ASE                                             -12_5/bin:/sybase/ASE-12_5/install:/sybase/AS: Command not found.
E-12_5/lib/:/sybase/OCS-12_5/bin:/dun/d2ddm0/jakarta-ant-1.5/bin: Command not found.

I checked the .profile file and .login file in that server A using that uaername u2 and I found that the respective jar file which is mentioned in .login file ( jar path set in CLASSPATH variable) is present in correct location but why it is showing error.

Pls help.

Last edited by Franklin52; 03-15-2011 at 08:28 AM.. Reason: Please use code tags
# 2  
Old 03-15-2011
There is probably a syntax error in the .login file but if you don't post it we can't help you Smilie
# 3  
Old 03-15-2011
Probably you have invalid line terminator or unnecessary "\n".
Please note that for long paths the result may display within more than one line but those MUST be a single line.
Please check this.
# 4  
Old 03-15-2011
This is my .login file .Kindly tell me what can I do
Code:
#MAIL=/usr/mail/${LOGNAME:?}
#/dun/lake0/devel/weblogic/weblogic/testenv.sh
#setenv CVSROOT :pserver:kallvi01@d2ddm:/dun/d2ddm0/GemSrcRep
#s#etenv CVSROOT :pserver:rathja01@p1ccm:/dun/p1ccm0/cvsroot/DistDir
#setenv BASE_GEMINI_CONTROLM_DIR /dun/d2ddm0/VinishBatchWL91
setenv DCDB_PATH /dun/d2ddm0/interface/dcdb
setenv HALFHR_PATH /dun/d2ddm0/interface/dcdb
setenv JAVA_HOME /dun/d2ddm0/jdk1.5.0_07
#setenv JAVA_HOME /dun/d2ddm0/j2sdk1_3_1_07
setenv JAVA_OPTIONS "-ms512m -mx512m"
setenv WL_HOME /dun/d2ddm0/bea/weblogic91
setenv ANT_HOME /dun/d2ddm0/jakarta-ant-1.5
setenv APP_PATH /dun/d2ddm0/bea/weblogic91/OnsiteDom/config
#setenv GEMINI_HOME /dun/d2ddm0/VinishBatchWL91
setenv APPLICATIONS /dun/d2ddm0/bea/weblogic91/OnsiteDom/config/applications
setenv DONE /dun/d2ddm0/interface/done/
setenv TEST /dun/d2ddm0/bea/weblogic91/OnsiteDom/config
setenv CLASSPATH .:/dun/d2ddm0/VinishBatchWL91/Batch.jar:ddmxml.jar:/dun/d2ddm0/bea/weblogic91/server/lib/jxl.jar:/dun/d2ddm0
/bea/weblogic91/OnsiteDom/config/applications/ejb_Gemini.jar:$WL_HOME/server/lib/weblogic.jar:$WL_HOME/server/lib/parser.jar:
$WL_HOME/server/lib/jconn2.jar:$ANT_HOME/lib/ant.jar
setenv LD_LIBRARY_PATH /sybase/OCS/bin:/usr/local/lib:/usr/ccs/lib:/usr/openwin/lib:/sybase/ASE/lib:/sybase/OCS/lib
setenv PATH /dun/d2ddm0/jdk1.5.0_07/bin:/usr/bin:/usr/local/bin:/usr/local/share:/usr/ccs/bin:/usr/ucb:/usr/openwin/bin:/usr/
sbin:/opt/VRTSvmsa/bin:/remotebu/datatools/sbacktrack-4.3.00/install:/sybase/ASE-12_5/bin:/sybase/ASE-12_5/install:/sybase/AS
E-12_5/lib/:/sybase/OCS-12_5/bin:$ANT_HOME/bin
setenv WLS /dun/d2ddm0/bea/weblogic91/OnsiteDom
#setenv WRK /dun/d2ddm0/VinishV
#setenv BAT /dun/d2ddm0/VinishBatchWL91
setenv c clear
#cd $WRK
stty erase ^H
set history=400
set savehist=400
set histsize=400
/usr/bin/tcsh


Last edited by Franklin52; 03-15-2011 at 10:10 AM.. Reason: Please use code tags
# 5  
Old 03-15-2011
Just off the bat it appears that your ANT home is having an issue.
setenv ANT_HOME /dun/d2ddm0/jakarta-ant-1.5

maybe make sure of this location
# 6  
Old 03-15-2011
As mentioned:

Code:
setenv CLASSPATH .:/dun/d2ddm0/VinishBatchWL91/Batch.jar:ddmxml.jar:/dun/d2ddm0/bea/weblogic91/server/lib/jxl.jar:/dun/d2ddm0
/bea/weblogic91/OnsiteDom/config/applications/ejb_Gemini.jar:$WL_HOME/server/lib/weblogic.jar:$WL_HOME/server/lib/parser.jar:
$WL_HOME/server/lib/jconn2.jar:$ANT_HOME/lib/ant.jar

should be:
Code:
setenv CLASSPATH .:/dun/d2ddm0/VinishBatchWL91/Batch.jar:ddmxml.jar:/dun/d2ddm0/bea/weblogic91/server/lib/jxl.jar:/dun/d2ddm0/bea/weblogic91/OnsiteDom/config/applications/ejb_Gemini.jar:$WL_HOME/server/lib/weblogic.jar:$WL_HOME/server/lib/parser.jar:$WL_HOME/server/lib/jconn2.jar:$ANT_HOME/lib/ant.jar

and

Code:
setenv PATH /dun/d2ddm0/jdk1.5.0_07/bin:/usr/bin:/usr/local/bin:/usr/local/share:/usr/ccs/bin:/usr/ucb:/usr/openwin/bin:/usr/
sbin:/opt/VRTSvmsa/bin:/remotebu/datatools/sbacktrack-4.3.00/install:/sybase/ASE-12_5/bin:/sybase/ASE-12_5/install:/sybase/AS
E-12_5/lib/:/sybase/OCS-12_5/bin:$ANT_HOME/bin

should be
Code:
setenv PATH /dun/d2ddm0/jdk1.5.0_07/bin:/usr/bin:/usr/local/bin:/usr/local/share:/usr/ccs/bin:/usr/ucb:/usr/openwin/bin:/usr/sbin:/opt/VRTSvmsa/bin:/remotebu/datatools/sbacktrack-4.3.00/install:/sybase/ASE-12_5/bin:/sybase/ASE-12_5/install:/sybase/ASE-12_5/lib/:/sybase/OCS-12_5/bin:$ANT_HOME/bin

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Sqlplus error - sqlplus -s <login/password@dbname> : No such file or directory

i am using bash shell Whenever i declare an array, and then using sqlplus, i am getting sqlplus error and return code 127. IFS="," declare -a Arr=($Variable1); SQLPLUS=sqlplus -s "${DBUSER}"/"${DBPASS}"@"${DBASE} echo "set head off ; " > ${SQLCMD} echo "set PAGESIZE 0 ;" >> ${SQLCMD}... (6 Replies)
Discussion started by: arghadeep adity
6 Replies

2. Solaris

Error while login into the server

Hello, Whenever i login into one of my solaris machine i get below message, Usage: basename ] if: Expression syntax Profile or environment of my user is not properly getting loaded. Can somebody help why this is coming and solution to it? (1 Reply)
Discussion started by: varunksharma87
1 Replies

3. Solaris

error message rmclomv ... SC Login Failure for user Please login:

Hello World ~ HW : SUN Fire V240 OS : Solaris 8 Error message prompts 'rmclomv ... SC login failure ...' on terminal. and Error Message prompts continually 'SC Login Failure for user Please login:' on Single Mode(init S) The System is in normal operation, though In case of rain, Can... (1 Reply)
Discussion started by: lifegeek
1 Replies

4. Shell Programming and Scripting

login error because of indentation isql

The below works/usr/sybase/bin/isql -S${SERVER} -D${DB} -U${ID} -P${PASSWD} -w 250 -n <<EOF > output The below is indented but doesnt work when /usr/sybase/bin/isql -S ${SERVER} \ -D ${DB} \ -U ${ID} \ -P ${PASSWD} \ -w 250 \ -n ... (1 Reply)
Discussion started by: pinnacle
1 Replies

5. UNIX for Advanced & Expert Users

VSI-FAX error - Cannot login to server and Connecto error to host

I encounters a VSIFAX related error: vfxstat: Cannot login to server on rsac3: Connect error to host 172.16.1.45: Invalid argument It started happening last night with a core dump. Then we can't start VSIFAX again. I am runing VSI-FAX 4.2 on AIX box (0 Replies)
Discussion started by: b_jin
0 Replies

6. Post Here to Contact Site Administrators and Moderators

Login error

Hi There, Good day, Few minutes before i made a donation thru your url provided. its a secured web page, but made process very slow. i am not sure whether it was transacted properly or not. Also i am not able to login after this system hang action. for each and every click events it... (2 Replies)
Discussion started by: karthikn7974
2 Replies

7. Solaris

login error as root

Hi i am using sun netra20 server ruuning solaris 9 and while i trying to login as root its showing error as shown below. SunOS 5.9 login:root password: Not on system console Connection to system closed by foreign host But i can login as scadm and su to root...then it is goin to root... (1 Reply)
Discussion started by: gini
1 Replies

8. UNIX for Advanced & Expert Users

Login error....

We have a situation where one of my users log's into my Solaris box and gets the followin error..... rsh marvin Last login: Tue Jun 28 07:28:18 from lvie450 ld.so.1: whoami: fatal: libgen.so.1: can't open file: errno=2 Killed /home/username @marvin> Anyone have any idea? Frank (2 Replies)
Discussion started by: frankkahle
2 Replies

9. AIX

Login Error 3004-304

I am trying to log on and get an error "3004-304 You are not allowed to login at this time.". This happens with both "root" and "admin" (the only other user ID on the system). System console or telnet session, doesn't matter. When I reboot the system, which I can only do with the power button since... (0 Replies)
Discussion started by: dino_bekas
0 Replies

10. UNIX for Dummies Questions & Answers

Error login user file utmp

could probably help me with a unix problem. Basicallyu, when the users try to connect to the server they get this messge: No UTMP entry. you must exec "LOGIN" from the lowest level "sh" They are connecting using a windows emulator called TINYTERM. We cannot connect from the console either... (3 Replies)
Discussion started by: jernesto_diaz
3 Replies
Login or Register to Ask a Question