rhost problems


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers rhost problems
# 1  
Old 09-21-2006
rhost problems

dear unix gurus,

trying to search for this thread in the forum but can't seem to find any of them.

just would like to post 2 questions:

1) if there are spaces in the .rhosts file will it cause problems for users who try to run the program/ script? Smilie
2) does the .rhosts file be located in root directory or the directory where where program/ script is located? Smilie

many thanks.

wee Smilie
# 2  
Old 09-21-2006
2) does the .rhosts file be located in root directory or the directory where where program/ script is located?

A .rhosts file is specific to a user. So the file should be in the home directory of the user.
# 3  
Old 09-22-2006
Quote:
Originally Posted by Yogesh Sawant
2) does the .rhosts file be located in root directory or the directory where where program/ script is located?

A .rhosts file is specific to a user. So the file should be in the home directory of the user.

hi so does it means it shld be in this directory:

/export/home/user/.dt? thanks
# 4  
Old 09-22-2006
It should be in the user's home directory, ~/.rhosts, not in ~/.dt/.rhosts.
See the man page for rhosts.
# 5  
Old 09-25-2006
Quote:
Originally Posted by RTM
It should be in the user's home directory, ~/.rhosts, not in ~/.dt/.rhosts.
See the man page for rhosts.
this is my command line in my script:

/bin/rsh -n -l smtadm xxx.xx.xx.xx /<directory>/<sub-directory>/nss_tools/scripts/DWH_Interface.csh >& /dev/null

i think there is a problem lying somewhere right? has it got to do with /dev/null? kindly advise. thanks.

the error i get is undefined variable which it has got something to do with see bold...kind of puzzle. can any guru explain? many thanks again.


wee

Last edited by lweegp; 09-25-2006 at 07:40 AM..
# 6  
Old 09-25-2006
You need to read how rsh sets up the user environment you are doing something that depends on the users login environment in the script.
# 7  
Old 09-25-2006
Quote:
Originally Posted by reborg
You need to read how rsh sets up the user environment you are doing something that depends on the users login environment in the script.
does that means the script that im calling from will have to define the user as well? Smilie
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

About ps -ef and if-else problems

I'm new in Shell Programming and Scripting, I would like to ask some questions. ps -ef | grep $appNAme | grep -v grep <-- what will it return when it find a process is running? return 1 or 0 if then exit 1 <--- if = 0 , run this ? else continue <--- if = 1 , run this ?... (5 Replies)
Discussion started by: LoAlex
5 Replies

2. Shell Programming and Scripting

If/then problems

#! /bin/bash # ask what the user would like to do CMD=$CMD MBA=$MB RS=$RS CT=$CT echo echo -n "What would you like to do?? REMEMBER WHEN PROGRAMMING ICP's TO SELECT CORRECT COMMAND ACCORDING TO NECCESSARY TYPE CODE! Please enter a command ct = program ctek ... (5 Replies)
Discussion started by: tdalyman
5 Replies

3. Shell Programming and Scripting

Problems with $?

Hello, I have the following piece of code that tries to retrieve the result of a .sh: . $HOME/prueba/Scripts/Recogida/recogida_sedra.sh resultado=$? echo "el resultado es : $resultado" if ; then echo "Se va a preprocesar los archivos" In the code of recogida.sh I have the... (8 Replies)
Discussion started by: danietepa
8 Replies

4. UNIX for Dummies Questions & Answers

Problems with using less

Hello, I am having problems with using less on Linux version 2.6.18-92.1.17.el5 (brewbuilder@hs20-bc1-7.build.redhat.com) (gcc version 4.1.2 20071124 (Red Hat 4.1.2-42)). I am using csh but have the same problems on bash. If I pipe something to less it works perfectly i.e. cat file | less... (9 Replies)
Discussion started by: z1dane
9 Replies

5. Solaris

define .rhost file for tape backup to remote host

howdy experts, i am using 2 server- Solaris 5.9 i have tape device attached with 1 of my solaris server. But others not. # modinfo|grep tape 152 13d43e4 1333c 33 1 st (SCSI tape Driver 1.231) now i want to Backup DATA file and System File in Tape Drive. How do I take data and... (3 Replies)
Discussion started by: thepurple
3 Replies

6. UNIX for Advanced & Expert Users

Problems with Last

Hi, I,ve a Unixware 7.1.3 working correctly for two years ago, since a several weeks I've a problem with the command last . The information that this command return is : For example : 1.- The user root , time login : 12:15 h, time logoff 12:15 h (the real time is 14:00). Connected time is... (3 Replies)
Discussion started by: By_Jam
3 Replies

7. UNIX for Dummies Questions & Answers

Few problems

Hi how can i do this? 1) shell script which writes data and time on to a file if filesystem exceeds 70% of space. 2) make entry to cron table to run a script every 15 mins. and can anyone expplain or demonstrate the difference between variables used in inside a function and outside a... (3 Replies)
Discussion started by: vivekshankar
3 Replies

8. UNIX for Advanced & Expert Users

'make' problems (compliation problems?)

I'm trying to compile and install both most recent version of 'make' and the most recent version of 'openssh' on my Sparc20. I've run into the following problems... and I don't know what they mean. Can someone please help me resolve these issues? I'm using the 'make' version that was... (5 Replies)
Discussion started by: xyyz
5 Replies

9. UNIX for Dummies Questions & Answers

remsh ? rlogin? rhost? r?

what should i use if i want to run a shell script from a remote host where in it requires me to enter a username and a password which is different from my present login and run a shell located in that server? should the script located on the local or remote end? something that will do something... (7 Replies)
Discussion started by: inquirer
7 Replies
Login or Register to Ask a Question