The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > SCO
.
google unix.com



SCO Santa Cruz Operation (SCO) was a software company based in Santa Cruz, California which was best known for selling three UNIX variants for Intel x86.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
set EDITOR=vi -> default editor not setting for cron tab aarora_98 Shell Programming and Scripting 6 09-13-2008 03:01 AM
displaying the users needyourhelp UNIX for Dummies Questions & Answers 1 09-13-2007 02:37 AM
displaying with ls vivekshankar UNIX for Dummies Questions & Answers 2 05-23-2005 04:46 PM
displaying date minazk Shell Programming and Scripting 7 11-14-2002 12:04 PM
displaying the first line? imuuk UNIX for Dummies Questions & Answers 4 04-18-2002 02:32 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-13-2003
ananthu_m ananthu_m is offline
Registered User
  
 

Join Date: Sep 2003
Posts: 3
vi editor not displaying?

Hi guys,


I have changed some path in the vi .profile and then i shutdown the system and when i reboot it i was unable to use
vi.

It is showing vi not found.Likewise for few other commands also.


How to solve this problem and make vi work again.


Plz. do provide the answer it is Urgent??


thanx,
m.ananthu
  #2 (permalink)  
Old 10-13-2003
norsk hedensk norsk hedensk is offline Forum Advisor  
Registered User
  
 

Join Date: Jul 2002
Location: new york
Posts: 1,025
your .profile is read everytime a login shell is started.

what did you take out of .profile?

do this, post here the output of the command:
'echo $PATH'

then lets try to see whats missing. it should have /usr/local/bin:/usr/bin at the very least. then if you are using x or kde or gnome you will have entries in your path pointing at those executables.
  #3 (permalink)  
Old 10-13-2003
hassan2 hassan2 is offline Forum Advisor  
Registered User
  
 

Join Date: Mar 2002
Location: London, England
Posts: 262
vi is nornally located in /bin directory and is likely that use have remove /bin in your .profile path

to fix the problem issue

/bin/vi .profile

and put /bin in your PATH like

PATH=/bin:
export PATH

then . ./.profile or logout and log back in so new .profile is loaded

the above will work if vi is install in the /bin directory, if your vi is not installed in /bin directory do

find / -name vi 2>/dev/null
to find where your vi is installed then included the location in your .profile PATH
  #4 (permalink)  
Old 10-14-2003
ananthu_m ananthu_m is offline
Registered User
  
 

Join Date: Sep 2003
Posts: 3
Hi guys,


Thank u very much it is working now.

Plz. do provide an answer for my other question as well so that

i will be so thankful to u guys.



I want ur replies very very Urgently.Plz. don't ignore this mail.

I am using Sco openserver 5.0.2 and i have downloaded jdk1.2.2

for that i have installed it.The jdk is working fine.

Then i download jakarta-tomcat-4.1.24.zip and i have installed it.

In order to run tomcat i went to the directory:-

/var/jakarta/bin

Which is where i move the tomcat contents:-

and i use :-

vi catalina.sh


Which opens a environment variable setting file.

Here i set the following things:-


export JAVA_HOME=/usr/java2

export CATALINA_HOME=/var/jakarta

Where this is the correct path Where jdk1.2.2 and jakarta-tomcat resides.


And in the vi .profile:-

i have set for jdk


PATH=$PATH:.:/usr/java2/bin


But there is no problem with jdk but when i try to run

catalina.sh by using the following command:-


# /var/jakarta/bin/catalina.sh start

in the shell prompt.

I am getting an error saying :-

/usr/java2 is not an identifier the same problem occurs for

CATALINA_HOME as well .


So plz. do provide a solution for this and plz. explain me where i am going wrong??? It is Very very Urgent at the moment.Plz. don't ignore this mail. I am in that situation at the moment.

I will be waiting for ur replies.

Thanx,
m.ananthu
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:26 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0