Howdy!
On Thu, 5 Aug 1999, Igor wrote:
> kako napisati scripto,
> da bi se telnetal na eno masino,
> recimo telnet pop.pop.com 110
> in tam izvedel komande
> user
> pass
> in list
> ter da bi mi vse to zapisal v eno datoteko
>
> poskusal sem z
> telnet pop.pop.com 110 > test.txt
> user XXX
> pass YYYY
> list
> quit
Hja, najbrz bi moral tiste 4 ukaze poslati na stdin telnetu. Recimo
takole:
cat << EOF | telnet pop.pop.com 110 > test.txt
user XXX
pass YYYY
list
quit
EOF
Peace!
Mkx
---- perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'