Tema: Re: reikia mazos pamokeles
Autorius: Nerijus Kislauskas
Data: 2008-10-30 09:35:38
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
script kiddie wrote:
> kaip iterpti pauze i scripta, ir kad reiketu paspaust bele kokia knopke kad
> skriptas toliau eitu?
>
> pvz
>
> komanda1
> komanda 2
> komanda3
>
> press any key to continye [ciua paspoaudziu bele kokia knopke]
>
> komanda4
> komanda5
> komadana...6
>
>
nerijus@varliukas:~$ ./a.sh
Vykdau komanda1
Vykdau komanda 2
Vykdau komanda3
Press any key to continue:
Vykdau komanda4
Vykdau komanda5
Vykdau komanda...6
nerijus@varliukas:~$
a.sh:
#!/bin/bash
echo "Vykdau komanda1"
#komanda1
echo "Vykdau komanda 2"
#komanda 2
echo "Vykdau komanda3"
#komanda3
echo ""
echo -n "Press any key to continue: "
read
echo ""
echo "Vykdau komanda4"
#komanda4
echo "Vykdau komanda5"
#komanda5
echo "Vykdau komanda...6"
#komanda...6
exit 0;
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkkJY8oACgkQVaDswePJAMWzywCeJkwvxtxjOnbjopS0H/0oY8h2
KtIAnAs7GrfxqnqiJn4qryPZZPP1mwAo
=h74r
-----END PGP SIGNATURE-----