Computing.Net > Forums > Unix > rsh and remote scripts

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

rsh and remote scripts

Reply to Message Icon

Name: Jonathan L. Walters
Date: February 20, 2002 at 21:07:54 Pacific
Comment:

I am attempting to use rsh to run scripts on a HP-UX 11 server from a web interface setup on a linux apache web server. I problem I am running into is the ENV variables in the scripts residing on the HP server are being ignored. any help with this issue or links to documentation on rsh would be appreciated.

JLW



Sponsored Link
Ads by Google

Response Number 1
Name: James Boothe
Date: February 21, 2002 at 06:52:14 Pacific
Reply:

I have no experience with the restricted bourne shell, but I just played around with it on an HP-UX 11.0 server. When I attempt to source an environment file via a full-path reference, it refuses. Both of the following equivalent commands:

. /usr/pgm/jboothe/test.env
. ./test.env

gives

"operation not allowed in restricted shell"

So it doesn't like the full-path reference, which MIGHT be outside of my pwd, although not in this case. I did successfully source the file without the full-path:

. test.env

So you might have to put your environment set-up in your pwd. And you cannot trick it by sourcing my.env which in turn tries to source some full-path references.


0
Reply to Message Icon

Related Posts

See More


sed question Resize Unix mount



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: rsh and remote scripts

SSH and remote execution www.computing.net/answers/unix/ssh-and-remote-execution/4627.html

Remote script to chmod www.computing.net/answers/unix/remote-script-to-chmod/7397.html

cygwin/ hp - rsh and ps. www.computing.net/answers/unix/cygwin-hp-rsh-and-ps/2751.html