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 7404941
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:19:44+00:00 2026-05-29T05:19:44+00:00

I currently have a script to help me automate an install. During this install

  • 0

I currently have a script to help me automate an install. During this install I have to switch from root to another user, gpadmin, and run the final leg of the install.
At this point I call:

su - gpadmin -c 'echo source /usr/local/greenplum-perfmon-web-4.1.2.0-build-2/gpperfmon_path.sh > .bashrc2;

source ~/.bashrc2;

gpperfmon --setup'

This works but I have to manually go through the EULA and other parameters. I had used a here document to go through and finish everything but for some reason this would prevent the creation of a security certificate and break the install. To circumvent this I wanted to attempted to use expects after the gpperfmon –setup command. Will these expects be called correctly even though they are being passed to a different user using the ticks?

  • 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-05-29T05:19:44+00:00Added an answer on May 29, 2026 at 5:19 am

    After tinkering around I found that the expect does work. I was mistaken in what I though expect was exactly.

    spawn "/gp/install/gppermon.bin"
    expect "EULA:"
    send \003
    

    That works to circumvent the EULA, and the entire SU process is not required.

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

Sidebar

Related Questions

Currently I have this JQuery script var img = $(this); img.wrap('<div class=photo></div>'); img.parent().append(<p> +
I currently have a script which will pull in image contents from a database
I am using MediaWiki 1.16.4 and currently have to migrate from a help site
I currently have this script where users (using a form where they can upload
This is script what I have currently - <script type=text/javascript> $(document).ready(function () { $('.RemoveSystem').click(function
I currently have a number of Python scripts that help prep a staging area
I currently have a script that scrapes proxies off websites, but I'm just wondering
I currently have a script which allows me to output the list of files
Currently I have a bash script which runs the find command, like so: find
I have a SQL script that inserts data (via INSERT statements currently numbering in

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.