LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-21-2005, 11:38 PM   #1
hinetvenkat
Member
 
Registered: Nov 2004
Location: Mumbai
Posts: 80

Rep: Reputation: 15
rsh problem


Hello All....


If i put


rsh -l root 172.163.2.3 "cd /"

It is not functioning. Any other command through rsh will work. What is the problem in this. kindly tell me.


Thanks
 
Old 04-22-2005, 06:19 AM   #2
MiscGeek
Member
 
Registered: Jan 2003
Location: Georgia, US
Distribution: RHEL WS4
Posts: 189

Rep: Reputation: 30
Re: rsh problem

Quote:
Originally posted by hinetvenkat
Hello All....


If i put


rsh -l root 172.163.2.3 "cd /"

It is not functioning. Any other command through rsh will work. What is the problem in this. kindly tell me.


Thanks
When you pass a command to rsh it executes the command and exits. I assume you want to run rsh -l root 172.163.2.3 "cd /" then run another command after it. If that's true you can pass multiple commands to rsh in one line by adding a ";" after each command.

rsh -l root 172.163.2.3 "cd /; cp *.txt <another/dir>"

Hope this helps.

Mike
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RSH: remuser too long error when rsh is executed from IIS dev33445 Programming 0 08-29-2005 10:34 AM
RSH problem hinetvenkat Linux - Networking 0 05-05-2005 07:33 AM
problem with rcp and rsh ! iamthewind Linux - Software 1 11-21-2003 04:03 AM
rsh problem jonfa Linux - General 2 10-22-2003 10:30 AM
rsh problem saxman2 Linux - Networking 0 06-28-2002 09:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration