LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
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
 
LinkBack Search this Thread
Old 04-21-2005, 10: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, 05: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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are 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 09:34 AM
RSH problem hinetvenkat Linux - Networking 0 05-05-2005 06:33 AM
problem with rcp and rsh ! iamthewind Linux - Software 1 11-21-2003 03:03 AM
rsh problem jonfa Linux - General 2 10-22-2003 09:30 AM
rsh problem saxman2 Linux - Networking 0 06-28-2002 08:33 AM


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

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration