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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:10:20+00:00 2026-06-13T12:10:20+00:00

My bash/nohup experience is very limited, so I might be making a basic mistake.

  • 0

My bash/nohup experience is very limited, so I might be making a basic mistake.

I’m launching a background file monitor. (In case it matters, Sass is a CSS preprocessor that can monitor source files and automatically compile them into CSS when it detects changes.)

When I enter this at a shell prompt, it launches the Sass file monitor perfectly:

nohup sass --watch /data/sass/:/data/css/ > /var/log/sass.out 2> /var/log/sass.err &

But when I put it in a script like this (a simplified sample script for debugging):

COMMAND="[exactly the same command as above]"
echo `$COMMAND`

I get this error:

nohup: ignoring input and redirecting stderr to stdout
Errno::ENOENT: No such file or directory - > Use --trace for backtrace. >>> 
Sass is watching for changes. Press Ctrl-C to stop.

The same thing happens if I specify the full path /usr/bin/local/sass. Any idea where I’m going wrong?

  • 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-13T12:10:20+00:00Added an answer on June 13, 2026 at 12:10 pm

    You can’t run a complex command (e.g. with redirection) via:

    echo `$COMMAND`
    

    You can only really do this if you are running a simple binary or script.
    Your $COMMAND needs to be expanded properly before executing, so you need to run:

    echo `eval $COMMAND`
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In bash on Mac OSX, I have a file (test case) that contains the
In bash I want to return file name (and the path to the file)
I need to run a bash script and a perl program in detached background
Bash: $nohup sleep 10 & but when I close the terminal: Any ideas? ideally
I have a bash script that tests whether the sftp connection exists, very simple
#!/bin/bash #James Kenaley 20120513 #Server Monitor Script while read -r name ip content do
In Bash, I can count the number of bytes in a text file like
#!/bin/bash i=0 echo echo ################## echo LAUNCHING REQUESTS echo COUNT: $2 echo DELAY: $3
My bash script call a php file #!/bin/bash data=$(./getconfig.php) The file getconfig.php is: #!/usr/bin/env
Bash scripts are very useful and can save a lot of programming time. So

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.