in reply to Re: RSH calling a shell script .profile issue
in thread RSH calling a shell script .profile issue

Most certainly it is in a trusted environment... You made me think twice about the post thinking I revealed hostnames.

When you talk about a make wrapper, I was thinking that I loaded the profile when I attemted to run a .sh script on the remote system as opposed to running each make command via an RSH command. The .sh script was just simply to execute the three compile lines as a last ditch effort. In the .sh script, I attempted to have it load .profile and so forth prior to anything else getting executed. If you have a different idea on the "make wrapper", please give me an example I can run with.

Assuming this doesn't work, I have kicked around the idea of using Rlogin and using Perl to echo the commands to the open Rlogin. Never done it but seems like an option. Rlogin should execute everything as though you logged into the machine.

-Brent
  • Comment on Re: Re: RSH calling a shell script .profile issue

Replies are listed 'Best First'.
Re: RSH calling a shell script .profile issue
by RMGir (Prior) on Mar 20, 2002 at 17:32 UTC
    Like this:
    #!/bin/bash # or /bin/ksh, or .... # set this to the right home path HOME=/home/compileUser . ~/.profile cd pathToMakeIn make ...
    Make sense?
    --
    Mike
      This worked Mike... I was missing the HOME line and that just so happened to be the issue. I never thought this would be that difficult until you start coding such a monster. Thanks for your input guys...
      Hello Mike... This worked, it's funny how simple it is to screw something up. I attempted to do what you suggested but I was missing one thing... The HOME= which was causing my problems either with .profile loading or how make was referencing HOME. Anyway, adding it took care of the problem. Meant to reply sooner but the page was really slow Friday... Thx again.
Re: Re: Re: RSH calling a shell script .profile issue
by brentmaier (Initiate) on Mar 25, 2002 at 16:52 UTC
    Hello Mike... This worked, it's funny how simple it is to screw something up. I attempted to do what you suggested but I was missing one thing... The HOME= which was causing my problems either with .profile loading or how make was referencing HOME. Anyway, adding it took care of the problem. Meant to reply sooner but the page was really slow Friday... Thx again.