[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-bash] running in background, sleep and back to normal prompt
From: |
adrelanos |
Subject: |
[Help-bash] running in background, sleep and back to normal prompt |
Date: |
Fri, 15 Feb 2013 16:40:59 +0000 |
Hi!
Legend: _ is used to symbolize an empty line
Smallest possible example script:
#!/bin/bash
sleep 1
echo ...
Running it...
./test &
Will result in.
/tmp/test $ ./test &
[2] 32420
/tmp/test $ ...
_
After pressing <enter>.
[2]+ Done ./test
/tmp/test $
Questions:
How can I get ride of the "[2] 32420"?
How can I get ride of the "[2]+ Done ./test"?
How can I get back to the normal prompt, for example "/tmp/test $" with
requiring to press enter?
Cheers,
adrelanos
- [Help-bash] running in background, sleep and back to normal prompt,
adrelanos <=