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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:42:03+00:00 2026-05-23T10:42:03+00:00

i have a script file which is ************************************************** case $arg in -start) **./$PRODUCT_BIN -d

  • 0

i have a script file which is

**************************************************
case $arg in

-start)

**./$PRODUCT_BIN -d $PRODUCT_SUBDIR/config $@**

if test $? -ne 0 ; then

exit 1

fi

;;

-version)

./$PRODUCT_BIN -d $PRODUCT_SUBDIR/config -i -v $@

if test $? -ne 0 ; then

exit 1

fi

;;

-configtest)

./$PRODUCT_BIN -d $PRODUCT_SUBDIR/config -i -c $@

if test $? -ne 0 ; then

echo 'failure: configuration test failed'

exit 1

fi

echo 'success: configuration was parsed successfully'

;;

-shell)

/bin/sh

;;

*)

echo "Usage: start [-start|-shell|-version|-configtest]"

exit 1

;;

**********************************************

i am looking to replace

"./$PRODUCT_BIN -d $PRODUCT_SUBDIR/config $@" 

with

"newtask -p $Project_Name ./$PRODUCT_BIN -d $PRODUCT_SUBDIR/config $@"

i tired to use sed but it isnot allowing to accept vairable as contant data.
can youplease help me here i am out of my brain by tying all kind of things…

Thanks in advance.

  • 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-23T10:42:04+00:00Added an answer on May 23, 2026 at 10:42 am

    You want this line:

    ./$PRODUCT_BIN -d $PRODUCT_SUBDIR/config $@
    

    to look like this:

    newtask -p $Project_Name ./$PRODUCT_BIN -d $PRODUCT_SUBDIR/config $@
    

    Right? Then:

    Just use single quote(') to wrap the command and pipe (|) as seperator:

    sed -i.bak 's|./$PRODUCT_BIN -d $PRODUCT_SUBDIR/config $@|newtask -p $Project_Name ./$PRODUCT_BIN -d $PRODUCT_SUBDIR/config $@|' scriptfile
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a bash script file which starts with a function definition, like this:
I have a Batch file which will call a Powershell Script : BATCH FILE
I have a script saved in a ps1 file in which I define 2
I have an MXML file, which references an external script file for all its
I have a Perl script which will allow for a file to be uploaded
I have a small python script which i use everyday......it basically reads a file
I have a very simple python script that should scan a text file, which
Currently, I have a script which does the following. If I have text file
I have the following script, which is in an external file called at the
I have an .htaccess file which calls a perl script if certain conditions are

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.