![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Executing a script through GUI | snvijaysankar | UNIX for Dummies Questions & Answers | 2 | 06-02-2008 01:49 AM |
| [AIX] executing script | piooooter | UNIX for Dummies Questions & Answers | 1 | 05-25-2006 09:53 PM |
| executing script | big123456 | Shell Programming and Scripting | 1 | 06-03-2005 04:32 AM |
| Executing ksh script from cgi | hodges | Shell Programming and Scripting | 1 | 05-27-2003 07:57 AM |
| Executing Ps in script | Claude | Shell Programming and Scripting | 1 | 11-21-2001 11:01 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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?? |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
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
|
|||
|
|||
|
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
|
||||
|
||||
|
No idea about which variable. Just clobber them one by one until it fails.
openvms supports rsh?! Now that is interesting.... |
|
#5
|
||||
|
||||
|
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 10:45 AM. |
|
#6
|
|||
|
|||
|
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
|
||||
|
||||
|
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. |
||||
| Google The UNIX and Linux Forums |