Solved

rlogin in csh

Posted on 2004-09-04
5
538 Views
Last Modified: 2013-12-26
how to use/do rlogin in csh script?
0
Comment
Question by:abc88
  • 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 20 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ADO Memory leak with DELPHI 2007 37 186
Complete beginner needs help making a cron job 9 118
either24  challenge 19 97
wordmultiple challenge 12 136
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.

832 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