Sync with 5.4.0
[deliverable/titan.core.git] / regression_test / XML / XmlWorkflow / PIPEasp_CNL113334 / demo / ShellQuestionString.sh
CommitLineData
970ed795
EL
1#!/bin/sh
2###############################################################################
3abe9331 3# Copyright (c) 2000-2015 Ericsson Telecom AB
970ed795
EL
4# All rights reserved. This program and the accompanying materials
5# are made available under the terms of the Eclipse Public License v1.0
6# which accompanies this distribution, and is available at
7# http://www.eclipse.org/legal/epl-v10.html
8###############################################################################
9# SCCSID: %Z%%M% %I% %G%
10#
11
12head -1 > /tmp/$$.input
13if xterm -title "Question from TTCN" -e sh -c "echo ''; cat /tmp/$$.input; echo ''; echo 'Give the Answer and Press RETURN'; head -1 > /tmp/$$.output"
14 then
15 cat /tmp/$$.output
16 /bin/rm -f /tmp/$$.input
17 /bin/rm -f /tmp/$$.output
18 exit 0
19 else
20 /bin/rm -f /tmp/$$.input
21 /bin/rm -f /tmp/$$.output
22 exit 1
23fi
This page took 0.03643 seconds and 5 git commands to generate.