Entering into C shell remotely


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Entering into C shell remotely
# 1  
Old 10-07-2010
Entering into C shell remotely

Hi All,

I want to enter into C shell from Ksh remotely.

I have written code like,

remsh $rHost -l $rUser -n "source $RM_HOME/run_time/.set_env.csh;
jar -xvf $package.$extension"


But it says;
ksh: source : not found
ksh: jar : not found

Can anyone help me?

Thanks.
# 2  
Old 10-07-2010
Code:
remsh $rHost -l $rUser -n "/usr/bin/csh -c 'source $RM_HOME/run_time/.set_env.csh; jar -xvf $package.$extension'"

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

List and copy dir remotely using shell script

Hi, I am looking for a way to copy the directory on a remote machine that's present on the same remote machine. ex. I have multiple directories on a remote machine "B" created as /abc/LOG_1004 /abc/LOG_1008 /abc/LOG_1012 The script should be able to create a copy of the latest dirs... (1 Reply)
Discussion started by: deo_kaustubh
1 Replies

2. Shell Programming and Scripting

Remotely Executing Shell Script - Problems

Hey Lads, I have a shell script on a remote Server X that i need to execute from Server A. the script executes fine locally but remotely does not. It appears the script on the remote machine is calling another shell script which only has an array defined . Please see below the errors. ... (10 Replies)
Discussion started by: Irishboy24
10 Replies

3. Shell Programming and Scripting

Need help to execute the shell remotely

Hi All, I have a typical problem where I have HP unix and want to connect to Solaris 5.10 box and run a shell. I tried with multiple forums but it does not help. As per my analysis, there is no ssh in my machine and so i cant connect to solaris box,secondly ftp to the solaris server is not... (2 Replies)
Discussion started by: cskumar
2 Replies

4. Solaris

how to execute shell script present in unix machine remotely from windows

how to execute shell script present in unix machine remotely from windows? I having a shell script in my unix machine, need to execute the script remotely from my windows machine using Visual Basic or VBA macros. Thanks In Advance. --Suresh (1 Reply)
Discussion started by: sureshmani
1 Replies

5. Solaris

Login delay after entering id (40 secs) same after entering pw

Hi all, I have just installed Solaris 10 on an old Fujitsu Primepower 650 which has been wiped clean. I haven't installed anything apart from the OS yet, so the machine is 99% idle. I get long delays when logging in, first after entering the id then another long delay after entering a valid... (8 Replies)
Discussion started by: longjon
8 Replies

6. Shell Programming and Scripting

help needed. run shell scipt remotely

Dear all , I have a script. this script called get.sh and can get some solaris infomation and save the result as result.tar.gz. the problem is : we have 12 servers. every time. I need to login 12 server and do the same job 12 times.:mad: master server ... (2 Replies)
Discussion started by: chinesefish
2 Replies

7. Shell Programming and Scripting

Entering parameter automatically

First of all thank you for your replies to my earlier difficulties. Now I am facing another difficulty. I have written following “for” loop. For var in `find . -name “2008_reports*”` Do Gpg -symmetric ${var} Done When I use this loop it asks to enter pass phrase every time. Is there any... (7 Replies)
Discussion started by: anushree.a
7 Replies

8. Shell Programming and Scripting

Entering secret password

Hello All, I am trying to write a script when executed, asks you for the password, and confirm password; it should save to a file and also entered password should not be in clear text on the console - should be as **** Can somebody give me direction in writing this in shell? Thanks Chiru (4 Replies)
Discussion started by: chiru_h
4 Replies

9. UNIX for Dummies Questions & Answers

Running UNIX commands remotely in Windows box from Unix box – avoid entering password

I am able to run the UNIX commands in a Windows box from a UNIX box through "SSH" functionality. But whenever the SSH connection is established between UNIX and Windows, password for windows box is being asked. Is there a way to avoid asking password whenever the SSH connection is made? Can I... (1 Reply)
Discussion started by: D.kalpana
1 Replies

10. UNIX for Dummies Questions & Answers

entering a long command

hello everyone! Very basic question for the guru's in here but anyways, I am trying to type a command that is longer than the line. What character do I use to continue my command on the next line? Thanks in advance.... Todd (1 Reply)
Discussion started by: hedrict
1 Replies
Login or Register to Ask a Question