Author Topic: busybox for Windows  (Read 1309 times)

Vortex

  • Member
  • *****
  • Posts: 1704
busybox for Windows
« on: April 28, 2015, 04:22:06 AM »
Quote
BusyBox is a single binary that contains many common Unix tools. It's often found in embedded Linux systems like routers.

http://intgat.tigress.co.uk/rmy/busybox/index.html

The shell of busybox is based on dash, Debian Almquist shell.

http://mywiki.wooledge.org/Bashism

Quote
Currently defined functions:
        [, [[, ar, ash, awk, base64, basename, bash, bbconfig, bunzip2, bzcat,
        bzip2, cal, cat, catv, chmod, cksum, clear, cmp, comm, cp, cpio, cut,
        date, dc, dd, df, diff, dirname, dos2unix, du, echo, ed, egrep, env,
        expand, expr, false, fgrep, find, fold, ftpget, ftpput, getopt, grep,
        gunzip, gzip, hd, head, hexdump, kill, killall, logname, ls, lzcat,
        lzma, lzop, lzopcat, man, md5sum, mkdir, mktemp, mv, nc, od, patch,
        pgrep, pidof, printenv, printf, ps, pwd, rev, rm, rmdir, sed, seq, sh,
        sha1sum, sha256sum, sha3sum, sha512sum, shuf, sleep, sort, split, stat,
        strings, sum, tac, tail, tar, tee, test, touch, tr, true, truncate,
        uname, uncompress, unexpand, uniq, unix2dos, unlink, unlzma, unlzop,
        unxz, unzip, usleep, uudecode, uuencode, vi, wc, wget, which, whoami,
        xargs, xz, xzcat, yes, zcat

Executing a command :

Code: [Select]
busybox.exe cat test.sh

x=1

while [ "$x" -lt 11 ]
do

   echo x = "$x"
   x=$(($x+1))

done

Running the script above :

Code: [Select]
busybox.exe sh test.sh

x = 1
x = 2
x = 3
x = 4
x = 5
x = 6
x = 7
x = 8
x = 9
x = 10