?
Solved

rlogin in csh

Posted on 2004-09-04
5
Medium Priority
?
550 Views
Last Modified: 2013-12-26
how to use/do rlogin in csh script?
0
Comment
Question by:abc88
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 48

Expert Comment

by:Tintin
ID: 11986106
The same way you'd do it in any shell, ie:

#!/bin/csh
rlogin hostname

However, I suspect that you forgot to give the full details as to exactly what you wanted to do.
0
 

Author Comment

by:abc88
ID: 11993746
ok.... what I need to do is that I would like to write a csh script to do some task on Sun machine and then rlogin to Linux machine to compile the task. And, then back to Sun machine to continue subsequent task. So, what I need to know is how to integrate the rlogin command into csh for the purpose above or automate the task..
0
 
LVL 48

Accepted Solution

by:
Tintin earned 80 total points
ID: 11993763
I would not recommend rlogin for the task, nor would I recommend scripting in csh.

What I would recommend is writing the bourne/ksh/bash script that uses ssh to talk to the remote server, eg:

#!/bin/sh

echo "Some local tasks"
ssh linuxserver "/command/to/compile"
echo "more local processing"

0
 

Author Comment

by:abc88
ID: 11993810
Well, before the compilation there are some variable that I need to setenv....

Can I still use ssh?
0
 
LVL 48

Expert Comment

by:Tintin
ID: 11993839
Sure.

For example to run make and set the CC environment variable to gcc, do

ssh hostname "cd /some/dir;CC=gcc make"
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question