in reply to In Linux how to kill the Prompt
Hi karthik.raju,
In Linux once the Perl script get complete of its execution, then how to close that current command promptWhich command prompt? can you explain your question in detail so that we can help you better!
Update:For your system command issue try below
Append this string to your command: >&- 2>&- <&-
>&- means close stdout
2>&- means close stderr
<&- means close stdin
system("ssh buildteam\@xx.xx.xx.xx 'sh /a/bbb/JBoss7/jboss-as-7.1.1.Final/bin/standalone.sh -b 0.0.0.0 > &- 2>&- <&- &'");
SSH connects stdin, stdout and stderr of the remote shell to your local terminal, so you can interact with the command that's running on the remote side. As a side effect, it will keep running until these connections have been closed, that's why your main program does not print the string after system() call.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: In Linux how to kill the Prompt
by karthik.raju (Acolyte) on Feb 19, 2015 at 07:56 UTC | |
by Happy-the-monk (Canon) on Feb 19, 2015 at 08:04 UTC | |
|
Re^2: In Linux how to kill the Prompt
by Anonymous Monk on Feb 19, 2015 at 11:04 UTC | |
by Happy-the-monk (Canon) on Feb 19, 2015 at 11:12 UTC | |
by Anonymous Monk on Feb 19, 2015 at 11:06 UTC |