10-10-2007
I did not make myself clear.
for example, home directory on host1 is mounted as /home/foo, and on host2 home directory mounted as /home/engr/foo. When
host1> rsh host2 ls -l ~foo
host1> /home/foo not found
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
We all know that pwd (or echo $PWD) gives us the present working dir as output.... but my doubt is that I'ld like to know how to get the present working folder - I mean - name of the current folder alone.. using pwd command I get the full folder name (right from root path)... I need to know... (2 Replies)
Discussion started by: mohanprabu
2 Replies
2. UNIX for Advanced & Expert Users
Can anyone explain this in detail ...
echo ${PWD#${PWD%/*/*}/}
Thanks in Advance (1 Reply)
Discussion started by: sakthi.abdullah
1 Replies
3. UNIX for Advanced & Expert Users
Hi people...
i recently installed AIX 5.3 on a server...
but now when i login with root it only shows '# ' without the location where i am...
for example: if im in /usr/local
it continues to show only '# '
and i want to see the path like 'root@server:/usr/local#'
someone can help me? ... (2 Replies)
Discussion started by: gfca
2 Replies
4. UNIX for Dummies Questions & Answers
i've been searching the way to connect to pwd.db file located in /etc/ directory..
since i'm not the root and only one of the users of the server, i need to connect to the database so that i can make a login page for all users of the server..
the file is readable by all users and the permission... (1 Reply)
Discussion started by: meggae
1 Replies
5. UNIX for Dummies Questions & Answers
Hi,
Can you tell me if there is a command such as pwd which does not give me the absolute NFS pathname i.e. it starts with .autofs? At the moment on the unix when I use the 'pwd' command it always gives me the nfs pathname rather thanthe local pathname of which is what i want, is there an... (4 Replies)
Discussion started by: cyberfrog
4 Replies
6. AIX
currently, my samba login works just fine. i want my clients to use aix5.3 account to login to samba so they don't have to change samba pwd and aix pwd. i googled, and vi /usr/lib/smb.conf per some of knowledge base, but i could not get to work.
aix5.3 and samba 3.0.24.0
thanks in advace..... (2 Replies)
Discussion started by: tjmannonline
2 Replies
7. UNIX for Dummies Questions & Answers
Dear users,
One more question, In unix when i use pwd the following I get:
pwd
/Users/username/src/directory name
Is there a way to get the out put like this in which the if there is a space in the directory eg directory name it should show as directory\ name:... (2 Replies)
Discussion started by: kevincobain2000
2 Replies
8. UNIX for Dummies Questions & Answers
Hi,
can anyone expalin the real importance of PWD as a variable.
However pwd command and $PWD is going to give the same result, then why do we have 2 different things.
Please give some example which illustrates the difference between both.
Thanks (9 Replies)
Discussion started by: pandeesh
9 Replies
9. Shell Programming and Scripting
Dear all,
I am trying to use 'pwd' command in following way.
current_directory == /dirA/dirB/test/dirC
if ; then
do this
fi
I am not sure how to pass this in command way. Please help!
thanking you,
emily (10 Replies)
Discussion started by: emily
10 Replies
10. UNIX for Beginners Questions & Answers
Hi all,when I cd to an environment variable "cd $MYDIR, if I type pwd, I don't the path to the environment variable dir I cd to. Appreciate the help, regards..Abbya (5 Replies)
Discussion started by: abbya
5 Replies
RSH(1) General Commands Manual RSH(1)
NAME
rsh - remote shell
SYNOPSIS
rsh [-n] [-l username] host [command]
host [-n] [-l username] [command]
DESCRIPTION
Rsh connects to the specified host, and executes the specified command. Rsh copies its standard input to the remote command, the standard
output of the remote command to its standard output, and the standard error of the remote command to its standard error. Interrupt, quit
and terminate signals are propagated to the remote command; rsh normally terminates when the remote command does.
The remote username used is the same as your local username, unless you specify a different remote name with the -l option. This remote
name must be equivalent (in the sense of rlogin(1)) to the originating account; no provision is made for specifying a password with a com-
mand.
If you omit command, then instead of executing a single command, you will be logged in on the remote host using rlogin(1).
Shell metacharacters which are not quoted are interpreted on local machine, while quoted metacharacters are interpreted on the remote
machine. Thus the command
rsh otherhost cat remotefile >> localfile
appends the remote file remotefile to the localfile localfile, while
rsh otherhost cat remotefile ">>" otherremotefile
appends remotefile to otherremotefile.
OPTIONS
-l username
Specify the remote user name.
-n Connect standard input of the remote command to /dev/null. Do this if rsh should not inadvertently read from standard input.
SEE ALSO
rcp(1), rlogin(1), rhosts(5).
BUGS
You cannot run an interactive command (like rogue(6) or vi(1)); use rlogin(1).
4.2 Berkeley Distribution April 29, 1985 RSH(1)