clueless - shell question


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers clueless - shell question
# 8  
Old 09-23-2003
can you post your .profile file? It's probably a syntax error.
# 9  
Old 09-23-2003
Here it is:

# This is the default standard profile provided to a user.
# They are expected to edit it to meet their own needs.

PATH="/usr/j2se:/usr/j2se/bin:/usr/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/java"



MAIL=/usr/mail/${LOGNAME:?}


I just copied the default from /etc/skel and added the path.
# 10  
Old 09-23-2003
Add the following under the PATH line
export PATH
# 11  
Old 09-23-2003
Did it.

Same results. Wierd, huh?
# 12  
Old 09-23-2003
Can you post the root entry from /etc/passwd?

I don't understand why you wrote that the default shell is -sh.
Default shell for root should be /bin/sh.

(Never mind...see the next post by Perderabo - he nailed it!

And it's been quite some time since using sh for root for me - our organization changed to ksh about 3 years ago - you were correct, /sbin/sh. I've been changing my workstation root account to test this problem - hard to remember all of this and try to get work done too!)

Last edited by RTM; 09-23-2003 at 06:01 PM..
# 13  
Old 09-23-2003
Have you really posted the complete contents of your .profile?

The error message that you posted is the result of a line something like this:
export $PATH
when what you really want is
export PATH

Make your first line of .profile be
echo .profile first line
and your last line of .profile be
echo .profile last line

If the .profile is the culprit, the error will appear between the two lines.
# 14  
Old 09-23-2003
Quote:
Originally posted by RTM
Can you post the root entry from /etc/passwd?

I don't understand why you wrote that the default shell is -sh.
Default shell for root should be /bin/sh.
I did a fresh install of solaris 8 and got /sbin/sh for root's default shell. This will show up in ps as "-sh". The leading minus sign always happens for a login shell.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Fedora

Clueless re Java: /opt vs. /usr/local

It seems this is a oft debated item, that's over my head. So here's what I've got: Java 7 set up at /opt/ but I really want it at /usr/local... What have I done? Have: Debian 7 (whezzy) with gnome, so what do I do to set things back where it should be? I guess this is a hot topic... (3 Replies)
Discussion started by: sas
3 Replies

2. Fedora

I need urgent help - Basic shell scripts but I'm clueless.

Hello. I am currently in a class dealing with shell scripts. I know some commands and get the basics of command line in Fedora 11. But the coding....I'm a bit lost. I was very ill for 2 weeks and missed a lot, much of which there are no notes provided. I'm not asking you to do my homework,... (1 Reply)
Discussion started by: Feuyaer
1 Replies

3. UNIX for Dummies Questions & Answers

Shell Question

Hi All, I am having this problem and I can't find a decent answer anywere. I'am trying to perform multiple command in a shell script. For example mkdir test tar cvzf test.tar.gz test/ rmdir test The problem I get is that if I run this file as a cronjob, with a big "test" folder; the... (4 Replies)
Discussion started by: dswz
4 Replies

4. UNIX for Advanced & Expert Users

Clueless about how to lookup and reverse lookup IP addresses under a file!!.pls help

Write a quick shell snippet to find all of the IPV4 IP addresses in any and all of the files under /var/lib/output/*, ignoring whatever else may be in those files. Perform a reverse lookup on each, and format the output neatly, like "IP=192.168.0.1, ... (0 Replies)
Discussion started by: choco4202002
0 Replies

5. UNIX for Dummies Questions & Answers

Linux Shell Question: how to print the shell script name ?

Suppose I have a script named "sc.sh" in the script how to print out its name "sc.sh"? (3 Replies)
Discussion started by: meili100
3 Replies

6. UNIX for Dummies Questions & Answers

Same ol "no acceptable cc found in $PATH" but I'm not clueless... just still a noob

Hey All, Let me start out w/ I have serched the forums and found this to be a typical problem. None of the threads have been able to help in my situation though. I know cc or gcc needs to be installed in ...bin]# (or lead the path of the app to wherever gcc is when compiling) so the app can... (4 Replies)
Discussion started by: SloYerRoll
4 Replies

7. UNIX for Dummies Questions & Answers

installing unix on windows? clueless here

I'm trying to learn how to use unix by installing it on my windows xp without having to format anything. I got some advice to get vmware player and run unix on it. I got the player, but now I'm stuck on figuring out how to use it or even find the unix download that I can use with it. Anyone knows a... (4 Replies)
Discussion started by: tnad
4 Replies

8. UNIX for Dummies Questions & Answers

Suggestion: Alternative OS for Windows - Totally Clueless on Unix/Linux OS

Can anyone tell me a good alternative to Windows? OS that can connect to a Windows domain and use for everyday (can use with Oracle). Easy to learn. (4 Replies)
Discussion started by: genesisX
4 Replies

9. UNIX for Dummies Questions & Answers

clueless...advice please!

for more than 5 years i have used windows based operating systems and hardwear, but recently i have decided to venture into the world of unix systems. very recently infact- i dont own a unix system yet and was wondering about hardwear.. i was planning on buying a second hand system from ebay... (1 Reply)
Discussion started by: andyh411
1 Replies
Login or Register to Ask a Question