[HTC One S] Frankyg:
unlock.sh - AWK not found, grep not found

Hi, I'm having problems getting this to work;

when I use terminal emulator;

su [enter]

strings -n 8 /dev/block/mmcblk0p6	[enter]

su works ok, but after entering the next command and presssing enter I get a 'not found' error. I have installed busybox. my phone is a US T-mobile One S.

next I tried method 3.

I have copied unlock.sh into the /system folder. When I enter the command /system/unlock.sh then I get an error;

Output from Terminal emulator (the first permission denied error was my fault, hadn't allowed execute permissions)

app_192@android:/ $ export PATH=/data/local/bin:$PATH

app_192@android:/ $ su

app_192@android:/ # /system/unlock.sh

sh: /system/unlock.sh: cannot execute - Permission denied

126|app_192@android:/ # /system/unlock.sh

This script will calculate the SIM Network Unlock Code for the HTC One S.

*You must run this script as root

*You must have BusyBox installed (free from the Google Play Store)

Full credit goes to ascot17 and jh787 for their work in breaking the code.

/system/unlock.sh[8]: awk: not found

/system/unlock.sh[8]: grep: not found

strings: standard output: Broken pipe

Error: Failed to get IMEI.

1|app_192@android:/ # busybox

BusyBox v1.20.2-cm9 bionic (2012-07-14 01:52 +0200) multi-call binary.

Copyright (C) 1998-2012 Erik Andersen, Rob Landley, Denys Vlasenko

and others. Licensed under GPLv2. Merged for bionic by tpruvot@github

See source distribution for full notice.

Usage: busybox [function [arguments]...]

or: busybox --list

or: function [arguments]...

BusyBox is a multi-call binary that combines many common Unix

utilities into a single executable. Most people will create a

link to busybox for each function they wish to use and BusyBox

will act like whatever it was invoked as.

Currently defined functions:

[, [[, adjtimex, arp, ash, awk, base64, basename,

bbconfig, blkid, blockdev, brctl, bunzip2, bzcat,

bzip2, cal, cat, catv, chattr, chgrp, chmod, chown,

chroot, clear, cmp, comm, cp, cpio, crond, crontab,

cut, date, dc, dd, depmod, devmem, df, diff,

dirname, dmesg, dnsd, dos2unix, du, echo, ed,

egrep, env, expand, expr, false, fbsplash, fdisk,

fgrep, find, flash_lock, flash_unlock, flashcp,

flock, fold, free, freeramdisk, fsync, ftpget,

ftpput, fuser, getopt, grep, groups, gunzip, gzip,

halt, head, hexdump, id, ifconfig, inetd, insmod,

install, ionice, iostat, ip, kill, killall,

killall5, less, ln, losetup, ls, lsattr, lsmod,

lsof, lsusb, lzcat, lzma, lzop, lzopcat, man,

md5sum, mesg, mkdir, mkdosfs, mke2fs, mkfifo,

mkfs.ext2, mkfs.vfat, mknod, mkswap, mktemp,

modinfo, modprobe, more, mount, mountpoint, mpstat,

mv, nanddump, nandwrite, nbd-client, nc, netstat,

nice, nohup, nslookup, ntpd, od, patch, pgrep,

pidof, ping, pipe_progress, pkill, pmap, poweroff,

printenv, printf, ps, pstree, pwd, pwdx, rdev,

readlink, realpath, reboot, renice, reset, resize,

rev, rm, rmdir, rmmod, route, run-parts, rx, sed,

seq, setconsole, setserial, setsid, sh, sha1sum,

sha256sum, sha512sum, sleep, sort, split, stat,

strings, stty, sum, swapoff, swapon, sync, sysctl,

tac, tail, tar, taskset, tee, telnet, telnetd,

test, tftp, tftpd, time, timeout, top, touch, tr,

traceroute, true, ttysize, tune2fs, umount, uname,

uncompress, unexpand, uniq, unix2dos, unlzma,

unlzop, unxz, unzip, uptime, usleep, uudecode,

uuencode, vi, watch, wc, wget, which, whoami,

xargs, xz, xzcat, yes, zcat

app_192@android:/ # system/unlock.sh

This script will calculate the SIM Network Unlock Code for the HTC One S.

*You must run this script as root

*You must have BusyBox installed (free from the Google Play Store)

Full credit goes to ascot17 and jh787 for their work in breaking the code.

system/unlock.sh[8]: awk: not found

system/unlock.sh[8]: grep: not found

strings: standard output: Broken pipe

Error: Failed to get IMEI.

1|app_192@android:/ # su

app_192@android:/ #

can anyone suggest what to try next?