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

  • Home
  • SEARCH
  • 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 6026385
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:26:15+00:00 2026-05-23T04:26:15+00:00

I have a bash script that monitors the jobs in a cluster from the

  • 0

I have a bash script that monitors the jobs in a cluster from the output of the LSF queueing system command “bqueues”. The script runs fine. Now I wanted to create a crontab entry that calls this script. The problems is that everythinh related with bqueues produces not output at all, what could be the reason?

  • 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-23T04:26:16+00:00Added an answer on May 23, 2026 at 4:26 am
    1. Cron jobs do not inherit the login environment of the user. Specifically environment variables set in .login or .profile, etc. will simply not be available. The absolute single most common reason cron jobs fail is that the PATH setting is not what the script writer assumed.
    2. Cron jobs do not have a stdin associated with them. Whilst cron will not execute the .login/.profile of a user, it will start the shell normally – thus causing the shell’s startup file (.cshrc,.bashrc,etc.) to be executed. Also some command used in the cronjob may be relying on a terminal being present. For example, if you are trying to start ‘vi’ in batch mode, Don’t. Instead replace it with ed or sed.
    3. Cron job output will be sent by Unix mail to the crontab owner
    4. Permissions on the crontab itself. Many cron implementations will not even look at a crontab if the permissions on the file are set incorrectly. Generally permissions should be extremely tight – with only read/write for the owner, and NO permissions for group or others.
    5. compare environments by issuing env from shell and crontab.
    6. …

    For more debugging tips, see How to debug an issue of cron's not executing a given script — or other?

    • 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 that runs (something like) the following command: vim -E
I have a bash script that sources contents from another file. The contents of
I have a bash script that is invoked from a cron job which has
I have a bash script that runs my package's test suite and it currently
I have a bash script that uploads a file via SFTP, with a command
Greetings, I have a bash script that parses ZIP files we receive from a
I have a bash script that includes the command: mv old.txt new.txt Old.txt doesn't
I have a bash script that runs a simulation program written in Fortran 90,
I have 1 bash script that runs another bash script, however the first bashscript
I have a Bash script that builds a string to run as a command

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.