I've got a quick first question. Why are you using
gnome-terminal to run
fio? Could you not simply run it directly? Is
fio an interactive program? If it isn't, then running it via
gnome-terminal doesn't buy you anything (but pain).
On to your original question.
What happens when you run your gnome-terminal command directly from a shell prompt? Does it wait for the fio command to finish before returning, or does it return immediately?
When I run gnome-terminal from the command line, it returns immediately, the terminal is created and displayed.
However, if I run gnome-terminal --disable-factory it hangs around until the terminal exits.
So, for example,
gnome-terminal -e "sleep 10"
returns immediately, while
gnome-terminal --disable-factory -e "sleep 10"
waits for the sleep to complete before returning.
I'm not sure at all of the ramifications of --disable-factory. The documentation (which is terse and meaningless to me) does not mention this behavior.
You should try running your command directly (e.g. from the command line) before embedding it in your code to make sure it behaves as you expect.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.