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.
In reply to Re: In Linux how to kill the Prompt
by vinoth.ree
in thread In Linux how to kill the Prompt
by karthik.raju
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |