The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Executing a script through GUI snvijaysankar UNIX for Dummies Questions & Answers 2 06-02-2008 04:49 AM
[AIX] executing script piooooter UNIX for Dummies Questions & Answers 1 05-26-2006 12:53 AM
executing script big123456 Shell Programming and Scripting 1 06-03-2005 07:32 AM
Executing ksh script from cgi hodges Shell Programming and Scripting 1 05-27-2003 10:57 AM
Executing Ps in script Claude Shell Programming and Scripting 1 11-22-2001 02:01 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-01-2003
frustrated1 frustrated1 is offline
Registered User
  
 

Join Date: Aug 2003
Location: Ireland
Posts: 278
Unhappy RSH use for executing a script

I have a script on one server.. which I am trying to run remotely from another server using rsh....

The command that i use from my second server is as follows

rsh /user_name="ops" /password="ops1" server1 "cd /users/ops ; ./script1"


When I run this I receive an error containing the below errors:
grc_error() says: GRC file /users/ops/.ops.rc open failed: No such file or directory (result 3)

I can run the script with no problems on server1 but when I try remotely from another server using rsh I receive the error above.. Any help would be appreciated - Anyone know what this file is or needs to contain??
  #2 (permalink)  
Old 10-01-2003
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
The syntax on your rsh command is very odd. What versions of unix are running on these systems?

If server1 works like versions of unix that I know, I may have an idea. Sign on to it and type env to see your environment. Then run an rsh command with just "env". I'll bet that your script needs an environment variable set. I would figure out which one and set it in the script.
  #3 (permalink)  
Old 10-01-2003
frustrated1 frustrated1 is offline
Registered User
  
 

Join Date: Aug 2003
Location: Ireland
Posts: 278
I am running the rsh command from an openvms system to a unix alpha system.

I hadnt checked the env variables yet but I will do so now...
Any idea what variable it could be?
  #4 (permalink)  
Old 10-01-2003
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
No idea about which variable. Just clobber them one by one until it fails.

openvms supports rsh?! Now that is interesting....
  #5 (permalink)  
Old 10-01-2003
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
Well, I posted that your DCL may in the wrong order, but then I jumped on a free VMS account and looked further - it should be fine.

Follow Perderabo's suggestion.

Last edited by RTM; 10-01-2003 at 01:45 PM..
  #6 (permalink)  
Old 10-02-2003
frustrated1 frustrated1 is offline
Registered User
  
 

Join Date: Aug 2003
Location: Ireland
Posts: 278
A lot of variables, so I am going through one by one.. I will let you know...



I am using openvms 7.3-1 and it supports rsh no problem... and I am pretty sure anything from at least 7.2 up does, not sure to prior to those versions.
  #7 (permalink)  
Old 10-02-2003
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
Can the author of the script provide any guidance? There should be some documentation, even if it is only in comments inside the script.

This page seems to suggest that a perl module named named getrc might need RC_PATH. Could that be it?

And understand that once you get past this error, you could encounter another error generated by a missing environment variable. You can eventually find them all by trial and error. But someone who understands the tools being used by the script can probably find them all in a few seconds.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:59 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0