New prompt line not automatically put to command line upon exit code

Jack Osborne

When submitting jobs, I'm getting Exit codes returned, but I have to hit the return key for them to be printed to the log.

1. prompt_line/location sas query.sas &
2. [1] 66682
3. prompt_line/location
4. [1]+  Exit 1                  nice -n 19 opt/sas/sashome/server/SASFoundation/9.4/sas 99query.sas
5. prompt_line/location
  • I submit the sas code 'query.sas' (line 1).

  • (Line 2) is put to the command line instantly confirming I've submitted the job and a new prompt line (line 3) is put to the command line instantly also.

  • I then have to hit the return key for the Exit status to be put to the command line (line 4) and a new prompt line is put to (line 5).

Where 'sas' is an alias for

nice -n 19 opt/sas/sashome/server/SASFoundation/9.4/sas

Is there a way to have a new prompt line put to the command line when an exit status is returned?

Kusalananda

If you are using a sh-compatible shell as your interactive shell (such as bash), you may use set -b:

Report the status of terminated background jobs immediately, rather than before the next primary prompt. This is effective only when job control is enabled.

In bash, this is equivalent to set -o notify.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

zsh new line prompt after each command

From Dev

Force exit code zero for windows command line commands

From Dev

Command script exit code not seen by same line && or ||?

From Dev

How to put placeholder in command line

From Dev

Terminate Blender with Exit Code "1" when run from command line

From Dev

Set Mathematica command line exit code

From Dev

Put a new line in <p> tag

From Dev

A command line that works in a prompt and not in a script

From Dev

Automatically enter input in command line

From Dev

Displaying a new line on the prompt

From Dev

Automatically enter input in command line

From Dev

Resize windows command line prompt?

From Dev

Command line to automatically crop an image?

From Dev

Change Command Prompt width from the Command Line

From Dev

Is there a command to get bash to print a new prompt string and redraw the current line?

From Dev

Is there a way to make putty automatically "close window on exit" from the command line?

From Dev

Change prompt on command line?

From Dev

Linux command line issue with prompt

From Dev

zsh new line prompt after each command

From Dev

How to make bash put prompt on a new line after cat command?

From Dev

Command on new line

From Dev

How are long command lines ( > $COLUMNS ) automatically wrapped to a new line?

From Dev

bash : multiple command on one line with different exit code

From Dev

New line after the command prompt

From Dev

colorize hostname in command line prompt

From Dev

Redirecting file line by line in MS command prompt

From Dev

Where to put the string in order to shorten my command line (bash) prompt in bash_profile in ubuntu 16.04?

From Dev

Windows Command Line - Prompt Advice

From Dev

Displaying a new line on the prompt

Related Related

  1. 1

    zsh new line prompt after each command

  2. 2

    Force exit code zero for windows command line commands

  3. 3

    Command script exit code not seen by same line && or ||?

  4. 4

    How to put placeholder in command line

  5. 5

    Terminate Blender with Exit Code "1" when run from command line

  6. 6

    Set Mathematica command line exit code

  7. 7

    Put a new line in <p> tag

  8. 8

    A command line that works in a prompt and not in a script

  9. 9

    Automatically enter input in command line

  10. 10

    Displaying a new line on the prompt

  11. 11

    Automatically enter input in command line

  12. 12

    Resize windows command line prompt?

  13. 13

    Command line to automatically crop an image?

  14. 14

    Change Command Prompt width from the Command Line

  15. 15

    Is there a command to get bash to print a new prompt string and redraw the current line?

  16. 16

    Is there a way to make putty automatically "close window on exit" from the command line?

  17. 17

    Change prompt on command line?

  18. 18

    Linux command line issue with prompt

  19. 19

    zsh new line prompt after each command

  20. 20

    How to make bash put prompt on a new line after cat command?

  21. 21

    Command on new line

  22. 22

    How are long command lines ( > $COLUMNS ) automatically wrapped to a new line?

  23. 23

    bash : multiple command on one line with different exit code

  24. 24

    New line after the command prompt

  25. 25

    colorize hostname in command line prompt

  26. 26

    Redirecting file line by line in MS command prompt

  27. 27

    Where to put the string in order to shorten my command line (bash) prompt in bash_profile in ubuntu 16.04?

  28. 28

    Windows Command Line - Prompt Advice

  29. 29

    Displaying a new line on the prompt

HotTag

Archive