From: =?ISO-8859-1?B?Q+lzYXIgU29sZXI=?= Subject: standard redirections Date: Fri, 17 May 2002 15:22:43 +0200 Sender: linux-admin-owner@vger.kernel.org Message-ID: <1726074523.20020517152243@euskalnet.net> Reply-To: =?ISO-8859-1?B?Q+lzYXIgU29sZXI=?= Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: List-Id: Content-Type: text/plain; charset="iso-8859-1" To: linux-admin@vger.kernel.org Hi all, I would like to run an interactive script, but I'm a bit lost. Is there any way to read a value from the keyboard when the standard input has been assigned to a file into a sh-script? It means, into a script I have a while loop, like: cat $file | while read line;do [commands] echo "Continue(y/n)?" read cont if [ "$cont" =3D "n" ];then exit 1;fi =20 [more commands] done In this way, cont is read from $file. Does anybody know how I could redirect again de standard input? Thanks in advance for your help! --=20 Best regards, C=E9sar mailto:csoler@euskalnet.net - To unsubscribe from this list: send the line "unsubscribe linux-admin" = in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html