SunQuest
           UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old February 9th, 2005, 11:10 AM
deb_dutta deb_dutta is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 25 deb_dutta User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 2 m 4 sec
Reputation Power: 0
Exclamation error message "cannot execute" .profile when try to logged in the system(urgent)

I am using Solaris 5.8 operating system. i made a change in .profile (i.e PS1="`$PWD >". now when i try to logged into the system it's gives a error -
".profile[15]: /export/home/goldmine: cannot execute".
i did not have any other user id to logged into the system. i want to just get the command line prompt, then i can change the .profile and make it in earlier position. pl. help me, how can i by pass to execute that line and get the command prompt. i try use cntrl+C also but no effect.
pl. help me
Thanks for the help

Reply With Quote
  #2  
Old February 11th, 2005, 06:03 AM
guggach guggach is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2004
Location: Middle Europa
Posts: 1,083 guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 19 h 49 m 57 sec
Reputation Power: 9
a) after PWD a closing ` is missed
b) i suppose $PWD is nothing else as 'pwd'
so why no use 'pwd' ? note PWD is NOT a standard variable
and could NOT run on other sys or using other shells
c) the way you are doing it is useless, .profile is consulted
ONCE on login, your PWD var will never be updated.
d) what shell are you using ?
reply (private) if interested, i have a working version.
__________________
working on Solaris[5-9], preferred languages french and C.

Reply With Quote
  #3  
Old February 16th, 2005, 09:57 AM
deb_dutta deb_dutta is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 25 deb_dutta User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 2 m 4 sec
Reputation Power: 0
Thumbs up

Thanks a lot for reply, u r correct, "`" was missed.
I already rectify that one.
Thanks a lot .
Bye
Quote:
Originally Posted by guggach
a) after PWD a closing ` is missed
b) i suppose $PWD is nothing else as 'pwd'
so why no use 'pwd' ? note PWD is NOT a standard variable
and could NOT run on other sys or using other shells
c) the way you are doing it is useless, .profile is consulted
ONCE on login, your PWD var will never be updated.
d) what shell are you using ?
reply (private) if interested, i have a working version.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > error message "cannot execute" .profile when try to logged in the system(urgent)


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway