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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:36:33+00:00 2026-05-26T18:36:33+00:00

I want to use the system command in a bash shell script. Being more

  • 0

I want to use the system command in a bash shell script. Being more specific,
if some condition in awk is satisfied (number of working nodes is 17) I want
to send me an email, I wrote the following code:

showq | grep nodes | awk '{if ($3 == 17) system("mailx -s 'Everything is Ok' armando@nodes.com <<EOF Tranquiquis EOF")  ; else  print "some nodes are not working"; fi }'

if I typed that I get the message:

awk: {if ($3 == 17) system(“mailx -s Everything
awk: ^ unterminated string

The problem I think is related to how the body of the message is specified. I don’t
know how to do it. I have tried several ways to fix the error but no success.

regards.

  • 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-26T18:36:34+00:00Added an answer on May 26, 2026 at 6:36 pm

    I found the problem, it had nothing to do with single quotes. Actually, I was using commands like ‘showq’ but one must use the whole
    path of the command in this way: ‘/opt/moab/bin/showq’ in crontabs.

    Thanks.

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

Sidebar

Related Questions

I want to use some thing unique for a licensing system. i decided to
In the middle of a Perl script, there is a system command I want
I want to use Subversion with a script based development system, and was wondering
I want to write a python script (Yes not Bash) that will use flac
I want to read the html file.And for that I use System.IO.File.ReadAllText(path) .It can
I want to use GenerationType.IDENTITY for primary keys in my production MySQL system. But
I want to use NSCalendarDate, which exists in /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2.1.sdk/ System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSCalendarDate.h but is not present
I'm using System.Data.Linq.DataContext file for accessing a mdf Database I want to use the
I want to implement a paperless filing system and was looking to use WIA
I use the following code to layout network drives on a system. I want

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.