File: basic

package info (click to toggle)
uftp 4.10.2-1.1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 1,436 kB
  • sloc: ansic: 21,182; makefile: 141; sh: 118
file content (16 lines) | stat: -rwxr-xr-x 204 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
set -e -x

tmp='./uftp-test-data'

dd if=/dev/urandom bs=1M count=2 of="$tmp"
cleanup () {
	rv="$?"
	rm -f "$tmp"
	return "$rv"
}
trap cleanup EXIT

uftp -q "$tmp"

cmp "$tmp" "/tmp/${tmp##*/}"