Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I installed TinyOS on RedHat for academic purposes. Now I can't log in to the system. I logged in in single user mode.

Then I tried to log in. I couldn't login as any user. I couldn't start the X server manually. When it boots up, the system doesn't start the X server.

Then I executed these commands

sh# hostname
(none)
sh# source .bashrc

bash-: gives a path relevant to TinyOS and says unable to find it

Then session stops.
Actually there is no such file.

How can I solve this?

share|improve this question
    
Actually I figured it out. There is a directory /etc/profile.d/ and when we log in with bash, all the .sh files are executed before others. There is a tinyos.sh and It can't find the directory (that I have mentioned) when it executes. That may be problem the system get stuck. This is my fault. But I got some ideas. I needed to find the file that execute environment variables in a different way. I search all the files that sets the EV. By mistakenly I found this. Thank You ! –  sura2k Dec 1 '11 at 9:48
add comment

migrated from stackoverflow.com Dec 1 '11 at 7:31

This question came from our site for professional and enthusiast programmers.

1 Answer

what is the current shell ? Is it bash? echo $0

when you execute bash, try . /path/to/.bashrc and see if that loads the environment.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.