| 1 |
#!/bin/sh |
| 2 |
############################################################################### |
| 3 |
# Copyright (c) 2000-2021 Ericsson Telecom AB |
| 4 |
# All rights reserved. This program and the accompanying materials |
| 5 |
# are made available under the terms of the Eclipse Public License v2.0 |
| 6 |
# which accompanies this distribution, and is available at |
| 7 |
# https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html |
| 8 |
# |
| 9 |
# Contributors: |
| 10 |
# Balasko, Jeno |
| 11 |
# Raduly, Csaba |
| 12 |
# |
| 13 |
############################################################################### |
| 14 |
# SCCSID: %Z%%M% %I% %G% |
| 15 |
# |
| 16 |
|
| 17 |
head -1 > /tmp/$$.input |
| 18 |
if xterm -title "Question from TTCN" -e sh -c "echo ''; cat /tmp/$$.input; echo ''; echo 'Give the Answer and Press RETURN'; head -1 > /tmp/$$.output" |
| 19 |
then |
| 20 |
cat /tmp/$$.output |
| 21 |
/bin/rm -f /tmp/$$.input |
| 22 |
/bin/rm -f /tmp/$$.output |
| 23 |
exit 0 |
| 24 |
else |
| 25 |
/bin/rm -f /tmp/$$.input |
| 26 |
/bin/rm -f /tmp/$$.output |
| 27 |
exit 1 |
| 28 |
fi |