Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8212973
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T10:57:16+00:00 2026-06-07T10:57:16+00:00

There is this problem that’s been bothering me lately. I’m trying to do the

  • 0

There is this problem that’s been bothering me lately.

I’m trying to do the following using rsh or remsh (in HPUX):

#!/bin/sh
rsh myDNS"
  DIRECTORY=/tmp/foo1/foo2
  echo $DIRECTORY
"

When I try to run the above script, however, I get blank output for $DIRECTORY. Consequently, when this issue is applied to the actual scripts I’m working on, bash claims that it could not find the specified script that I was trying to source.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T10:57:18+00:00Added an answer on June 7, 2026 at 10:57 am

    You’re better off using ssh than using rsh or remsh. rsh and remsh are very insecure – the transmit data in cleartext and are based on IP address authentication.

    If you use double quotes like that, $DIRECTORY gets expanded on the initiating host, before rsh/remsh is started.

    If you use single quotes (apostrophes) instead, $DIRECTORY should be expanded on the remote host.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There was this problem that has been asked about implementing a load byte into
There's this problem that has been bugging me all day now, and I hoped
I'm mostly convinced that there is an answer to this problem, but for the
I've been struggling with this problem.. There is a wrapper div and it contains
There is this well-known problem that browsers don't put Ajax request in the request
I have this problem that when there is an OpenGL application I am working
This is an interesting problem that I’ve not been able to solve yet. I
I have this problem that I have many huge functions, and I'm using only
So I'm trying to solve this problem that asks to look for palindromes in
It seems that this problem has already been encountered by quite a few people:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.